Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What are the uses of Remote functions and Remote events?

Asked by
Grazer022 128
4 years ago

I just have learned what Remote events and functions are and what they do. But i have a questions of what you can do with them. If anybody can tell me what you guys do with remote events and functions. Thanks!

0
Keep in mind remote events doesnt really stop exploiters in you game, exploiters will find a way to bypass the system. Remote events are useful if you want to get something from the server to client. JesseSong 3916 — 4y
0
Its best to create an anti exploit script for exploiters. That way they cannot do anything malicious to the system. JesseSong 3916 — 4y

1 answer

Log in to vote
1
Answered by
Yozoh 146
4 years ago
Edited 4 years ago

Filtering enable Remote events and Remote functions work along side filtering enable. Essentially it keeps exploiters from being able to manipulate what other players see. For example, if an exploiter deleted the baseplate, this change will only be shown on his side. This is what separates the server from the clients.

Server vs Client The server is everything in your game that every player needs to see in order to play the game: buildings, baseplate, mountains, and important code handling. Think of the server as the big boss. The client is every player in the game. It only sees what the server wants them to see and can't boss the server around. This is why exploiters aren't able to reach the server and can't steal code on the server side.

Remote events and Remote Functions Now remote functions and remote events is what bridges the client and server. It's true that the client is unable to manipulate changes in the server, but remote functions and remote events allow for the client to 'send requests'. Think of the client as asking his boss for a raise. The server then needs to confirm before sending information back to the client: "yes, you can have a raise" or "no, you can't have a raise".

Remote events Remote events are for 1-way communication.

  1. Client -> Server: Say for example, the player wants to color their house a certain color and needs to send this information to the server.
  2. Server -> Client: Server notifying a certain player when his friend joins.
  3. Server -> All clients: Say for example the server needs to show a countdown for all of the players for a relay race.

Remote Functions Remote functions are for 2-way communication. Instead of just sending a request, it waits to hear back from the other side.

  1. Client -> Server -> Client: Say for example the player presses a button to buy 10 apples, the server needs to confirm that the player has enough money to make this purchase. If the player does, the server can subtract from the player's money and give them the apples.

You can learn way more on the developer hub page: https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events

0
THANKS A LOT! THIS IS REALLY DETAILED! THANK YOU FOR YOUR TIME WRITING THIS Grazer022 128 — 4y
0
you get an upvote >:D Grazer022 128 — 4y
0
:D Yozoh 146 — 4y
Ad

Answer this question