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

spawnCharacter

spawnCharacter(authority, player, options?): Entity

Spawns player’s character, as the characters plugin does once the player’s save has restored onto the player entity, and answers it. Spawns at a point placed for the player’s team, or the player’s seat’s spawn point, with the scene’s <CharacterSpawn>’s props and each plugin’s onCharacterSpawn. Registers it as the player’s saved entity, saved as savedAs, so the player’s record for it restores over those defaults. The player controls it, and it becomes the player’s view target and presence. A character the player has is destroyed first, captured into the player’s save as it goes. A new one saved as the same name carries the character’s bag, as Roblox’s LoadCharacter replaces the player’s character; one saved as another name is a character switch. An explicit position and facing win over the character’s saved place, and so does a point placed for the player’s team unless characters() sets restorePlace. A player who waits for a team spawns too: the call is the game’s own. Takes the room’s step, requireAuthority, or the player’s join hook’s step.

Parameter Type
authority EntityAuthority
player Entity
options SpawnCharacterOptions

Entity