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

What someone tell me what this function its in a local script?

Asked by 4 years ago

What does this mean its a local script inside a gui

repeat wait(.1) until game.Players.LocalPlayer
1
that section of code waits till the localplayer exists, used as a delay to not get errors such as "attempt to index nil localplayer".. or certain descendants.. greatneil80 2647 — 4y
0
I have made a sandbox game but I wasn't sure if this was the reason why only 1 person can use the sandbox at one time FluffySheep46209 369 — 4y
0
Would this sctipt work for every player on the server FluffySheep46209 369 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

This script means that the code runs until it finds a player that has joined the game in 0.1 seconds. Until then, it won't run any code after that line. This script would work for every player in game if you change

wait(.1) [[-- To --]] 
wait()
Ad

Answer this question