LoadCharacter

LoadCharacter creates a new character for the player, removing the old one. It also clears the player's Backpack and PlayerGui. void LoadCharacter (    bool inGame = true )

Parameters
inGame

Type: bool

Defaults to: true

Returns: void

Example
This script turns off auto-loading and simulates character respawning. local respawnDelay = 5 game.Players.CharacterAutoLoads = false game.Players.PlayerAdded:connect(function(player) 	player.CharacterAdded:connect(function(character) -- find the humanoid, and detect when it dies local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid.Died:connect(function 				wait(respawnDelay) 				player:LoadCharacter 			end) end end) 	player:LoadCharacter -- load the character for the first time end)