Make Script Wait For Character

Sometimes, when using player added and trying to make a variable for a players character, the script will run before the player has loaded in. To counter this, we need to write a line of code that waits for the player until they are loaded in, when they load in, the script can run again.

repeat wait() until player.Character

Will wait until character is a valid member of the player.

Last updated