Disconnect (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess
No edit summary
>Legend26
Redirected page to RBXScriptSignal#Methods
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude>{{Method
#REDIRECT [[RBXScriptSignal#Methods]]
|name = disconnect
|description = Disconnects a function from an event so it is no longer active.
|object = Event
}}</onlyinclude>
 
{{clear floats}}
 
{{Example|
Below is an example of connecting a function and then disconnecting it.
<pre>
local Connection = script.Parent.Touched:connect(function()
print("Hit")
end)
 
Connection:disconnect()
</pre>
}}
 
[[Category:Methods]]

Latest revision as of 00:49, 21 March 2012