i put death animation to the game character and doesn't respawn (sorry for my bad english)
script.Parent.dechanimeichion.OnServerEvent:Connect(function(_, anim, humanoid, char, root)
humanoid:LoadAnimation(anim):Play()
root.Anchored = true
end)
--anim = the death animation
--humanoid = the humanoid from the character
--char = the character
--root = HumanoidRootPart from the character

1 comment
Add the LoadCharacter() as that person's answer said, but also play the animation in the LocalScript. Animations meant for players should be played by a LocalScript while animations for NPCs should be played by a normal script.