Signal. new Synchronous
KawaiiSignal.newPsmSignal.newVoltSignal.new
Create a small custom event for communication between parts of your own script. Unlike a Roblox Instance event, this signal lives entirely in Luau and needs no BindableEvent.
Luau
Signal.new() -> SignalParameters
This function takes no arguments.
Returns
SignalA Signal object with Connect, Once, Wait, Fire, DisconnectAll, and Destroy methods.
Usage notes
Signal, KawaiiSignal, VoltSignal, and PsmSignal refer to the same library. Destroy the signal when its listeners are no longer needed.
Example
Luau
local changed = Signal.new()
local listener = changed:Connect(function(value)
print("New value:", value)
end)
changed:Fire("ready")
listener:Disconnect()
changed:Destroy()