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

What should be run on a script and what should be run on a localscript?

Asked by 5 years ago

When doing FE you have to pass agruments to the server and those arguments go to the Clients where everyone is playing at. But idk which arguments to pass. I know some like Mouse.hit and player but not any other. Is there more than just those two? Thanks for helping me.:)

2 answers

Log in to vote
0
Answered by 5 years ago

I'm not to great at coding but i think i understand this topic decently well. from what i understand things such as key presses and played input should be local.

and stuff you want everyone to see besides animation, should not be in a local script such as damage and stuff like that

Hope this answered your question i think there's a wiki on this if this didn't help.

Ad
Log in to vote
0
Answered by 5 years ago

You would use a Script for doing things on the server, such as creating parts, cloning maps, admin commands, affecting every player in the game, for data storing, and there's much more, those are just a few examples. A LocalScript should be used when you want to code with GUI, or for manipulating the camera and user input, or something that only one player should see. There is obviously more reasons to use a LocalScript.

Answer this question