Signal.new
Creates a Lua signal with Connect, Once, Wait, Fire, DisconnectAll and Destroy.
Syntax
Signal.new() -> table
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
table | The returned collection or table. |
Description
Signal.new is part of the Signals library. Signal helpers resolve live RBXScriptSignal objects and their connection lists. Firing and replication use the client's real signal paths.
Each call creates or returns a fresh object or value that you can store and pass to other functions.
The aliases makeSignal() resolve to the same implementation.
Example
local signal = Signal.new()
signal:Connect(function(value)
print(value)
end)
signal:Fire("hello")
Notes
- Aliases:
makeSignal(). - Signal helpers operate on the live RBXScriptSignal and its connection list.