#Local Scripts

1 messages · Page 1 of 1 (latest)

viscid blade
#
If you Play Roblox 
Then There is a 'server' (Roblox Server)
And a 'Client'  (Your PC/Phone/...)
if you spawn a part with a 'server script, Everybody sees it' 
with a 'Local Script, only you see it' (other players dont)

the useful part about local scripts it that you can some local 'script functions' 
like
UserInputService (Gets the buttons you press)
RunnService        (update something after every frame)
and some more

you can use local scripts for 'things that should work fast' 
like Movement/GUIs/...
cuz they dont have delay (ping)
because they are on your pc
'But they are easy to Exploit (Hack)'
cuz every Exploiter can just delete them from their PC
dense cave
#

heres an article on them form the official roblox engine documentation 👍

#

an example use case is if you want a door to open only for 1 player, and want every other player to see it closed, you would tween the door open on a localscript for that player