How to freeze the Character while in animation (after death)

Currently, I have a system in my game where the players can fight, dance and do other stuff. To keep it simple: a bunch of animations are being used.
Right now my goal is, to freeze the players as soon as they are dead (Killanimation)

I want the last pose they had to get frozen in time. This can be achieved by cloning the character and anchoring all of the bodyparts. The problem lies with the character death part. As soon as the character dies, every animation in the model gets reset to the default “no animation” pose. Soo, when freezing players on death, there is a chance they keep their animations but there is also a chance that the character will be cloned too late and they will be in the default pose. (Because I’m essentially playing with the time there. Either the Humanoid is faster, or I am)

I will probably have to script my own Health system, but i was wondering if there even is a solution to this problem.

So to sum up the problem: I can’t clone the character before it resets all its animations and I’m sad because of that :slight_smile:

At the instant the character dies, unbind the player.Character, remove the humanoid, and anchor the entire model.
(might not work but worth a try)

1 Like

That’s what I was already doing. The problem with that is, that the humanoid.Died event fires while the humanoid is dying. So the animations are either reset or not. 50/50 chance depending on what script is first

I solved the problem by checking in the damage script if the player will die, firing my own event and then setting the player health.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.