game.Players.PlayerAdded has a nil value

I know it’s something to do with the player not having fully loaded yet, but this is my code:

The highlighted lines returns nil, what could I add to try and stop that line returning nil

(task.wait(5) works, but is unreliable for low end devices)

1 Like

Commonly the best way to get a player character once you have the player instance is to do this, with an event based approach:

Yes, btw, is serverscriptservice the same for everyone (say if I change a value inside it for one player, will that replicate for all other clients)

Nope. It doesnt. (charrrrrrrs)

1 Like