ReferenceSignals

cfiresignal

Raises a signal through the engine, so engine-side listeners run as well as Luau connections.

Syntax

cfiresignal(signal: RBXScriptSignal, ...: any) -> ()

Parameters

ParameterTypeDescription
signalRBXScriptSignalThe event to fire.
...anyThe event's arguments, converted to the types the event declares.

Description

firesignal calls Luau connections directly. cfiresignal asks the engine to raise the event, the way the engine itself would, so the engine's own connections run too. The arguments are converted to the event's declared types, as for a real event, and nothing is sent to the server.

Example

local box = game.Players.LocalPlayer.PlayerGui.Login.Name
cfiresignal(box.FocusLost, true)

These are Game executor contracts. Check build requirements and session lifetimes before using them.