Learn how to use Remote Functions in Roblox with this video. Remote Functions are used to trigger actions on the server from the client and to return back information from the server to the client, like two way communication.
Unlike RemoteEvents, RemoteFunctions can send information back to the client, such as items in a shop stored on the server, or whether a transaction was a success or not. Because of this, a RemoteFunction yields, which means it won’t run any more code on the client/server it was invoked on until it gets a result returned back.
A RemoteEvent cannot return information and so doesn’t yield. It immediately continues with the script when it fires to the server/client.
Become an AlvinBlox Channel Member and benefit from a range of perks!