Issue with Player Motors + Animations

Hi, I’m making my own over-the-shoulder gun system. I’m most of the way there, but I’m running into one major issue. My animations work fine by themselves, but when I add in code that makes the player look up and down, the animations start breaking. I’ll attach some videos that show the problem:


This first video shows animation working fine without the code that makes the character look up and down. You can see that the character is holding the gun straight forward. No problems there.


This video shows what happens if I try to implement the new code. You can see that the animation sort of jitters in the arms. When the character is in the same orientation as the previous video, the arms snap back to the proper position where the gun is straight forward. Otherwise, the gun is skewed to the right.

I’m not sure if this is a scripting issue or an animation issue. For my code, I’m simply changing the C0 angle of the waist Motor6d in the character to look up or down. I tried doing it both on the client and the server but neither way fixed this animation issue.