Death animation problem

Hello,
I Just finished doing an npc that attacks the player, I now tried to add a death animation. And it does seem to work, the animation plays etc. However when the animation does play the npc seems to “fall over” and I’m not sure how to fix this. I’ve linked a video of the problem along with screenshots of my scripts.
Any help would be really appreciated!!!

video of the problem

death script

overall enemy ai script (just in case it has something to do with the death script which i doubt)

edit: The solution was found, thank you all for your help I appreciate it!

1 Like

Its probably because the npc is dead. maybe either wait to kill it until after the animation is over OR use alignpos or somthing like that to keep the npc upright while the animation plays.

let me know if this helps.

Unfortunately I don’t think this worked… I can quickly make a model and send it over for closer inspection if that would help.

I gave you Two options to try. which one didn’t work?

I tried the one with waiting to kill it until the animation is over and the alignpos, however I don’t really know how to use alignpos so maybe I just did something wrong with it.

have you tried making it so like instead of dying at 0HP it instead dies at 1HP, so technically its still alive which will allow you to do animations for it, but it pretty much looks dead

1 Like

Try making all parts of the npc uncollide-able and anchor the root
If it isn’t an animation problem (which you should also check the animation priority)
its probably just colliding with the ground

2 Likes

I did some research on animation priority and it works now! Thank you so much <333

1 Like

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