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.
Luau
firesignal(signal: RBXScriptSignal, ...args: any) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
signal | RBXScriptSignal | RBXScriptSignal whose Lua listeners should run. |
...args | any | Arguments 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
Luau
local event = Instance.new("BindableEvent")
event.Event:Connect(function(message)
print("Listener received:", message)
end)
firesignal(event.Event, "preview")
task.wait()
event:Destroy()