Animations weird rotation with humanoids?

This might be a bug report but I can’t post it on there

There is something weird with animations on my NPCs. The NPCs perform the animation but it tries to keep the torso up straight even when the animation involves the torso and made it look weird so I don’t know if I’m doing this wrong or something

I have found a similar post but it was quite old and has not been resolved
I tried some methods but it did not work or was too inconvenient
(Animation playing incorrectly when played by an NPC)

I just wanna find out how other people did it

Here is the example
(Sorry for low quality)