The RBXScriptSignal data type defines an event. It can be connected to a function that will run when the event is fired.
Methods[]
Connect(func: function): RBXScriptConnection[]
Connects the function to run when the event is fired. The arguments of the function are dependent on the event that is being connected.
connect(func: function): RBXScriptConnection []
Deprecated. Use Connect.
Wait(): Variant[]
Yields the script until the event is fired, and returns its parameters.
wait(): Variant []
Deprecated. Use Wait.
Once(func: function): RBXScriptConnection[]
Connects the function to run when the event is fired. The arguments of the function are dependent on the event that is being connected, and the connection itself will be disconnected after the next time the event fires.
Referenced by[]
- (removed)
Basic Lua types | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Roblox types |
| ||||||||||||||||||||||||||
API reference only |