Animation interfering with CFrame movement

I have made a walking animation for a npc, and I have created a script that makes an infinite corridor with a camera following the npc with the corridor. I have noticed this happens after some time:

As you can see, the npc overtime goes up until you can’t see it. I am 100% sure that happens because I rotated the arms and the legs in the X / Z axis (wich in this video is the green line). So I made that animation but without rotating that, and it didn’t go up.
I’d really appreciate a fix for this problem.
1 Like