replicatesignal
Fires a signal with server replication.
Syntax
replicatesignal(signal: RBXScriptSignal, ...: any) -> voidParameters
| Parameter | Type | Description |
|---|---|---|
signal | RBXScriptSignal | The signal to fire |
... | any | Arguments to pass |
Returns
This function does not return a value.
Description
replicatesignal fires a signal in a way that replicates to the server, unlike firesignal which only fires locally.
Example
-- Fire a ProximityPrompt's Triggered signal with replication
local prompt = workspace.Door.ProximityPrompt
replicatesignal(prompt.Triggered, game.Players.LocalPlayer)Difference from firesignal
| Function | Local | Replicates |
|---|---|---|
firesignal | ✅ | ❌ |
replicatesignal | ✅ | ✅ |
Use Cases
- Input simulation: Simulate user input that needs server acknowledgment
- Interaction triggers: Fire interaction events that should replicate
- Testing: Test server-replicated behavior
Notes
- Not all signals can be replicated
- Server validation may still reject the action
Related Functions
firesignal- Fire locally onlygetconnections- Get connections