Signals

firesignal

Runs the local connections for an RBXScriptSignal with the provided arguments.

Syntax

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

Arguments

NameTypeDescription
signalRBXScriptSignalSignal passed to getconnections. Missing or nil values raise "firesignal expects a valid connection".
...arguments?..anyValues passed to each local signal connection.

Description

Runs the local connections for an RBXScriptSignal with the provided arguments. The first argument must be a valid signal. Invalid signal values raise an error.

Call it with 2 parameter(s): signal, ...arguments. The argument table explains which values are required and which ones only refine the behavior.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Run local Lua connections attached to an RBXScriptSignal and pass extra values to each eligible connection.

local button = script.Parent

firesignal(button.Activated, "manual")