replicatesignal Synchronous
replicateevent
Send a supported Roblox signal through Kawaii’s engine replication path. Use this only when you need the network-visible behavior of a specific supported event.
Luau
replicatesignal(signal: RBXScriptSignal, ...args: any) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
signal | RBXScriptSignal | RBXScriptSignal with a supported replication path. |
...args | any | Arguments required by that signal’s replication callback. |
Returns
()No values.
Usage notes
A signal can pass cansignalreplicate but still raise here if its arguments, owner, or engine callback are unavailable. The accepted arguments depend on the signal; inspect getsignalargumentsinfo and handle errors with pcall.
Unlike firesignal, this invokes an engine replication callback rather than scheduling local Lua listeners.
Example
Luau
local event = Instance.new("BindableEvent")
if cansignalreplicate(event.Event) then
local ok, reason = pcall(replicatesignal, event.Event)
print(ok, reason)
else
print("This local event has no replication path")
end
event:Destroy()