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

How to make sure player is loaded before running any scripts?

Asked by 5 years ago

Is there a way to delay scripts until the character is fully loaded into the server? Isn't there like a Character.IsLoaded() or something like that? Appreciate any help i can get.

0
If you mean that the character just joins the game...make the scripts wait a little while(1-3 seconds)and its probably going to load in whatever you want to add. bostaffmanbulgaria1 89 — 5y
0
while not player.Character then wait end whenallthepigsfly 541 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

just use a if game.Players.LocalPlayer.Character ~= nil then

Ad

Answer this question