RemoteEvents v.s. RemoteFunctions:: what's the difference?

Could somebody explain the difference between RemoteEvents and RemoteFunctions, because they both:

  • Comunicate from the client to the server.
  • Comunicate from the server to the client.
  • Can be called anywhere whenever.
  • Put virtually the same amount of stress on the server.

To put it simple remote events are 1 way, so you can only go from server to client or vice versa, or server to server or client to client, where as Functions are 2 way, they can go back and forth, hence, the word “Callback”. For example this is how they communicate “Call me back if you return true or something that isnt nil!”. If you want to learn more about it, there is plenty of tutorials or: Remote Events and Callbacks | Documentation - Roblox Creator Hub

Hope this helps! :slight_smile:

2 Likes

You use RemoteEvents when you want to do something.
You use RemoteFunctions when you want to do something and get something in return.

It’s as simple as that tbh, for example, If you want to do something on the server, you send a RemoteEvent to the server whereas if you want information on the client, you fire a RemoteFunction and on the server, have a function that is returning something meaningful.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.