And when do I use them?
What is the difference between local script and script?
1 answer
Local scripts are normally used in starter gui, starterplayer, starter player scripts.. etc... Localscripts can access a player. If localscripts are placed in the players startergui, it can alter what other players see.. Meaning you can make a door opened for a specific person..
Regular scripts can change values, cannot use game.Players.LocalPlayer and can save data which localscripts cannot do! scripts can also change items in the server.. Like, update a timer for every player in the game... Regular scripts come in as much handy as localscripts do...
There are also module scripts... Used to create functions and when called from another script using require(), those functions can be used in other scripts
2 comments
Thanks greatneil80! I've been studying as much as possible about scripting. I've started about 2 months ago and I've not known about this. So, thank you!
You are most certainly welcome :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
research plz
The difference is that a LocalScript is used when you want the client in the game to change something. Scripts are used for telling the server what to do.