Trying to ragdoll, but player removes instead of ragdolling on death

  1. What do you want to achieve? Ragdoll on death.

  2. What is the issue? Player dies, and automatically removes itself.

  3. What solutions have you tried so far? Tried characterautoloads.

game.Players.CharacterAutoLoads = false
game.Players.PlayerAdded:Connect(function(player)
	game.Players.CharacterAutoLoads = true
	repeat wait() until player.Character
	game.Players.CharacterAutoLoads = false
	player.Character.Humanoid.Died:Connect(function()
		wait(5)
		player:LoadCharacter()
	end)
end)

I’ve never tried to ragdoll players before, but here’s a really good thread that describes exactly how you can!