PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

RemoteEvent

Show deprecated

RemoteEvent

Show deprecated

A RemoteEvent is designed to provide a one-way message between the server and clients, allowing Script|Scripts to call code in LocalScript|LocalScripts and vice-versa. This message can be directed from one client to the server, from the server to a particular client, or from the server to all clients.

In order for both the server and clients to utilize a remote event, the RemoteEvent object itself must be in a place where both sides can see it. As such, we recommend that you store the RemoteEvent inside of ReplicatedStorage, although in some cases it’s appropriate to store it in the workspace or inside a Tool.

Properties

Functions

void

FireAllClients ( Tuple arguments )

Fires the RemoteEvent/OnClientEvent event for each client.

void

FireClient ( Instance player , Tuple arguments )

Fires RemoteEvent/OnClientEvent for the specified player.

void

FireServer ( Tuple arguments )

Fires the RemoteEvent/OnServerEvent event on the server using the arguments specified with an additional player argument at the beginning.

Events

RBXScriptSignal

OnClientEvent ( Tuple arguments )

Fires listening functions in LocalScript when either RemoteEvent/FireClient or RemoteEvent/FireAllClients is called from a Script.

RBXScriptSignal

OnServerEvent ( Instance player , Tuple arguments )

Fires listening functions in Script when RemoteEvent/FireServer is called from a LocalScript.