When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
Description
Return the player's remaining time before respawn, or -1 if it is not available (such as when the player is alive).
Syntax
playerRespawnTime
Returns: Number
Examples
Example 1
waitUntil { playerRespawnTime <= 0 };
See also
Community notes
Also note that spawning doesn't create a body to use, but allows a player to choose an already existing one as defined either in the mission editor or in a script as player or playable.