Signal.new Synchronous

  • KawaiiSignal.new
  • PsmSignal.new
  • VoltSignal.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.

Syntax
Luau
Signal.new() -> Signal

Parameters

This function takes no arguments.

Returns

Signal

A 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

Example
Luau
local changed = Signal.new()
local listener = changed:Connect(function(value)
    print("New value:", value)
end)
changed:Fire("ready")
listener:Disconnect()
changed:Destroy()
Kawaii documentation