firesignal Asynchronous

Invoke the Lua listeners currently attached to an RBXScriptSignal with the arguments you supply. This helps test callback behavior without waiting for the original game event.

Syntax
Luau
firesignal(signal: RBXScriptSignal, ...args: any) -> ()

Parameters

Function parameters
ParameterTypeDescription
signalRBXScriptSignalRBXScriptSignal whose Lua listeners should run.
...argsanyArguments delivered to those listeners.

Returns

()

No values.

Usage notes

Callbacks and waiting coroutines are scheduled through task.spawn. The call does not wait for them to finish.

This only schedules listeners found on the signal. It does not reproduce every engine side effect of the original event; use the event’s own API when you need those effects.

Example

Example
Luau
local event = Instance.new("BindableEvent")
event.Event:Connect(function(message)
    print("Listener received:", message)
end)
firesignal(event.Event, "preview")
task.wait()
event:Destroy()
Kawaii documentation