Lua-side duplication of the API of events on Roblox objects.
Signals are needed for to ensure that for local events objects are passed by reference rather than by value where possible, as the BindableEvent objects always pass signal arguments by value, meaning tables will be deep copied. Roblox's deep copy method parses to a non-lua table compatable format.
|Signal||Signal.new ( )||Constructs a new signal.|
|nil||Fire ( ... )||Fire the event with the given arguments.|
|Connection||Connect ( function handler )||Connect a new handler to the event.|
|...||Wait ( )||Wait for fire to be called, and return the arguments it was given.|
|nil||Destroy ( )||Disconnects all connected events to the signal.|
Fire the event with the given arguments. All handlers will be invoked. Handlers follow Roblox signal conventions.
Connect a new handler to the event. Returns a connection object that can be disconnected.
Wait for fire to be called, and return the arguments it was given.