#Quick question

7 messages · Page 1 of 1 (latest)

idle ocean
#

local scripts = client only

#

normal scripts = server script (everyone will see the change)

#

if you do local scripts, only the client (in which the script is being executed in) will be affected

#

for instance:

if game.lighting.brightness = 0 and I were to run the following in a normal script:

game.lighting.brightness = 0
end```

everyone would get brightness 0
#

however, if I were to run the same in a local script

#

only the client which is running the script will be affected

#

(multiple clients can run the same local script, a useful use for local scripts would be client-sided UI (e.g. a loading screen, menu, etc..)