How do I stop my character from breaking when dying?

Hi! I am not sure why or what is causing this but whenever I reset, my character dies normally but then it disappears and takes a very long time then it reloads the player.

This is what it looks like when it hasn’t loaded. The output I can’t see anything. Possibly a runtime error?

UPDATE ON THE SERVER SIDE I CAN SEE THE CHARACTER FLOATING
image

1 Like

It also happened me in a lot of games, you can just make a own respawning system. For that you can use the function player:LoadCharacter() when the Humanoid event died fires.

game:GetService("Players").CharacterAutoLoads = false
function Load(Player:Player?)
	task.delay(1,function()
		if Player ~= nil then
           Player:LoadCharacter()
        end
	end)
end
game:GetService("Players").PlayerAdded:Connect(function(Player)
	Load(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Humanoid:Humanoid? = Character:WaitForChild("Humanoid")
		Humanoid.Died:Connect(function()
			Load(Player)
		end)
	end)
end)
2 Likes

Yes, that code can work to it.

Why do you have this in a colon and question mark?

Typechecking.