Skip to content

firesignal

Firing mode

This function will invoke all the connections of the signal immediately, ignoring the Workspace.SignalBehaviour property.

firesignal Invokes all Lua connections connected to a given RBXScriptSignal.

function firesignal(signal: RBXScriptSignal, ...: any?)

Parameters

Parameter Description
signal The signal whose connections you want to manually fire.
...? The arguments to pass to the connected functions.

Example

Manually firing a signal with and without arguments
1
2
3
4
5
6
7
8
local part = Instance.new("Part")

part.ChildAdded:Connect(function(arg1)
    print(typeof(arg1))
end)

firesignal(part.ChildAdded)            -- Output: nil
firesignal(part.ChildAdded, workspace) -- Output: Instance