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

How to make a script wait till a player loads fully?

Asked by 10 years ago

Ok so I have some localscripts that break because the script ran before the player fully loaded. I have this at the beginning of the scripts: repeat wait() until game.Players.LocalPlayer but that doesn't seem to work all the time. Is there any way I can make the script wait until the player has loaded fully?

1 answer

Log in to vote
1
Answered by 10 years ago

You can use the method "player:WaitForDataReady()" Look here for more info

Ad

Answer this question