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

Does a remote function make things happen to the client or server? same thing with remote events

Asked by 3 years ago

i am currently learning remote function and remote events and i need to know this.

0
Remote functions either go from client to server to client OR server to client to server. And remote events can go from client to server, server to client, server to all clients, and client to client DarkDanny04 407 — 3y
0
what would i use to make it so a gui only shows up for the client that is using it? diggerbear1 32 — 3y
0
If you put a GUI into starterGui, when you play the game, it already gets cloned to the client. If you make changes to from inside the GUI, only the client will so those changes. If you mean how to change it if they stepped on a brick for example, you would need a remote event that fires the client to tell it to change that player's GUI DarkDanny04 407 — 3y
0
it only worked for one gui and what do i put in the local script? diggerbear1 32 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Either.

I think I answered your other question in relation to showing a GUI to just one player, so I'll just quickly explain

The client can not make changes to the server, so if we were to have a GUI that, when clicked, spawns a car, we'd have to use a RemoteEvent since the client (AKA the player who clicked the GUI) can not change the server (by inserting a car into the workspace).

This is where RemoteEvents come in.

We can use a RemoteEvent as a sort of way to "message" the server and then it gets decided on the server side how to handle these events.

This was introduced into ROBLOX as a way to stop hackers by changing it so the hackers can only see their hacks, no one else.

If you have any other questions I'd happily answer those too.

Hope this helped!

Ad

Answer this question