What is the best way to know when the player fully load?

Hi, I have scripts that starts as soon as the player joins, And when i am testing my game i keep getting erorrs due to me not fully loaded
To solve this quickly, I put this in the start of every script and it works

wait(5)

But, Thats not professional!
Can anyone help me with a better way?

1 Like

You can use ContentProvider service.
Maybe be some kind of loading screen maybe.

Or just wait until the character loads, though still very unpredictable.

Player.CharacterAdded:Wait() --only works on server

repeat task.wait() until game.Loaded -- works on both

Really depends on what you mean by player is fully loaded. Do you mean just their character or their appearance as well? More context would be nice.

local character = player.Character or player.CharacterAdded:Wait()

This will wait until the player has a character.

1 Like

so… are you even using Instance:WaitForChild()?

And also, task.wait() has replaced wait(), you should use it instead.