Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setRespawnPoint

setRespawnPoint(authority, player, point): void

Sets where player comes back, such as the last checkpoint the player’s character touched, or clears it with null. The next respawn stands the character there, whatever <CharacterSpawn>’s respawn names as its place, unless that respawn is false, and the next spawn too, over the spawn points. The point holds on the player’s team at the write, or on every team where the player has none, in the scene mounted at the write, and in the world held at the write until that world is wiped. A respawn passes over a point that does not hold, and over every point while the player plays in a match that places its own, and comes back as the scene’s respawn says. Kept on the player entity, so a new character keeps it, and in the player’s game-wide record by characters.saves.respawnPoint where the game saves; it holds only in the world it was set in. Takes the room’s step, a hook’s writer, or the player’s join’s step. As Roblox’s Player.RespawnLocation, a point rather than a part.

Parameter Type
authority EntityAuthority
player PlayerEntity
point RespawnPoint | null

void

setRespawnPoint(step, player, { position: { x: 0, y: 4, z: 30 }, facing: Math.PI })