PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

RBXScriptSignal

RBXScriptSignal

RBXScriptSignal, more commonly known as an Event, is a special kind of Roblox object. It provides a way for user-defined functions, called listeners, to be called when something happens in the game. When a certain event happens, the Event is fired, calling any listeners that are connected to the Event. An Event may also pass arguments to each listener, to provide extra information about the event that occurred.

Functions

RBXScriptConnection RBXScriptSignal:Connect ( function func )

Establishes a function to be called whenever the event is raised.
Returns a DataType/RBXScriptConnection object associated with the connection.

Variant RBXScriptSignal:Wait ( )

Yields the current thread until this signal is fired. Returns what was fired to the signal.