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
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)