How do I make the player respawn with a custom character

How do I make the player respawn with a custom character (Not with StarterCharacter)

I am doing a character selection game but when the player dies it does not reappear with the same character I already tried in various ways but none of them worked for me

can someone help me plz? :neutral_face:

please send your script. if you dont have please make one. In devforum we only help for broken scripts.

Would be useful if you provided the script you’re currently working with.

You can use the :AddAccessory() function to add accessories to the player.

If you use the default Roblox rig you can use a HumanoidDescription https://developer.roblox.com/en-us/articles/humanoiddescription-system

local HumanoidDescription = nil -- The HumanoidDescription Instance that contains info about the appearance of the Humanoid

-- Stop automatic spawning so it can be done in the "PlayerAdded" callback

game.Players.CharacterAutoLoads = false
 
local function onPlayerAdded(player)
	-- Spawn character with "HumanoidDescription"
	player:LoadCharacterWithHumanoidDescription(HumanoidDescription)
end
 
-- Connect "PlayerAdded" event to "onPlayerAdded()" function
game.Players.PlayerAdded:Connect(onPlayerAdded)
2 Likes