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

What's a better alternative for repeat?

Asked by 8 years ago
repeat wait() until Player.Character

Im trying to wait for the Character to load but it doesn't work sometimes and it's really annoying, are there any other better alternatives?

1 answer

Log in to vote
1
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
8 years ago

You could use the CharacterAdded event of player:

Player.CharacterAdded:connect(function)
    -- run code
end)
Ad

Answer this question