Signal class
Constructor
Creates a new Signal objects.
Properties
No property on this class.
Methods
Connects the function to the signal. When the signal fires, the function is called. If arguments were passed to the Signal:Fire() method, they are passed to function when calling it.
Yields (stops) the current thread until the signal fires. If arguments were passed to the Signal:Fire() method, they are returned by the method.
Fires the signal, calling all connected functions. If arguments were passed, they are also passed to each connected function when calling them.
Safely removes the signal, preventing it from firing. This method should be called if the signal is not used.
Events
No events on this class.
Connection class Not creatable
Constructor
Properties
Describes whether the connection is still alive. If Connection:Disconnect() has been called, this property is false.
Methods
Disconnects the connection, preventing the connected function from being called.