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

RemoteFunction

Show deprecated

RemoteFunction

Show deprecated

A RemoteFunction is used to create in-game APIs that both the client and the server can use to communicate with each other. Like BindableFunction, a RemoteFunction can be invoked (called) to do a certain action and return the results.

Properties

Functions

Tuple

InvokeClient ( Instance player , Tuple arguments )

[Yields]

Calls the method bound to the RemoteFunction by RemoteFunction/OnClientInvoke for the given Player. Use from a Script.

Tuple

InvokeServer ( Tuple arguments )

[Yields]

Calls the method bound to the RemoteFunction by RemoteFunction/OnServerInvoke. Use from a LocalScript. Returns what RemoteFunction/OnServerInvoke returns.

Events

Callback

Tuple

OnClientInvoke ( Tuple arguments )

Called when the client is invoked by RemoteFunction/InvokeClient.

Tuple

OnServerInvoke ( Instance player , Tuple arguments )

Called when the server is invoked by RemoteFunction/InvokeServer.