We use cookies on this site to enhance your user experience

RemoteFunctions are used to create in-game APIs that both the client and the server can use to communicate with each other. Like BindableFunction, RemoteFunctions can be invoked [called] to do a certain action and return the results of this action.

This allows a Script to call code in a LocalScript and vice versa. This can be useful when building games with Experimental Mode turned off.

If the result is not needed then it is recommended to use a RemoteEvent instead, as its call is asynchronous and doesn’t need to wait for a response to continue execution.

Notes

  • Mind that there are some limitations.

  • Take a look at [this][3] article for excellent documentation on RemoteEvents and RemoteFunctions.

Functions

Name Type Description
Tuple

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

Tuple

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

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild

Callback

Name Type Description

Called when the client is invoked by RemoteFunction/InvokeClient.

Called when the server is invoked by RemoteFunction/InvokeServer.