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

if you are using FE do you have to use Remote Events for everything?

Asked by
MHaven1 159
8 years ago

i am making a FE game and i was wondering if you have to use remote events or remote functions for Buy buttons for cars/bikes and other stuff.

1
You only need to use remote events and such for when you want what someone does to show up for everyone RockerCaleb1234 282 — 8y
0
if you buy a car it will be placed in workspace so do i have to use Remote Events for that? MHaven1 159 — 8y

2 answers

Log in to vote
3
Answered by 8 years ago
Edited 8 years ago

Filtering Enabled

OK UM UH In order to answer this we should go over what Filtering Enabled does to begin with. It cuts off communication between the Client, and Roblox's servers. Wh what d-does that mean? You may or may not be asking.

It means that any scripts, any code and instructions running on the client cannot directly modify anything on the server, and vice versa. For example, if you have a tool using a local script, and you want that tool to make a part-- it .. won't happen-- and if a server script wants to edit something like your Player GUI it also won't work. Its why this breaks archaic weapons and vehicles.

It's also why there are local scripts vs Server scripts. One runs on your client, and the other on the server

Remote Events/Functions

Filtering Enabled is like that fussy teacher that wont let you talk to others during class-- BUT THATS OKAY BECAUSE YOU HAVE NOTES ER I MEAN.. Remote events and Functions.

These things are events that bridge the gap between your computer and Roblox's servers. These things come in 2 parts, and use the Remote Event/Function objects. They are objects that you insert into your game and have a lightning bolt or pink block icon. The first part of this exists on the server/client and fires the events. For example, if you want a to change a brick's color with a local script you would create or locate the event through something like game.workspace.Event:FireServer() and the 2nd part exists on the opposite plane of the 1st part and would be listening for the event to be fired to trigger a function using game.Workspace.Event.OnServerEvent:connect(function())

Y-you can also send strings, tables, Booleans and other things through remote events as to not spam your place with them-- You should probably look at these articles with expand on this far beyond anything I could explain. There are moments when Remote Functions are better and the other way around as well as gud toriel's on how do write these thingies.

http://wiki.roblox.com/index.php?title=Security http://wiki.roblox.com/index.php?title=API:Class/RemoteEvent

-inhales-

http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial#Limitations <<

And that's the power of the Slap-Chop

Ad
Log in to vote
1
Answered by 8 years ago

You only need remote events if you want the client to communicate with the server, to connect with everyone else, and the other way around occasionally.

Answer this question