Animation playing weirdly on custom rig

Hello! my walk animation plays weirdly when I walk using the animate script during runtime, here is what it is supposed to look like in the animation editor.

And here is what it looks like in runtime.

does anybody know how to fix this?

Animation priority too low maybe?

nope, set to movement priority

Fixed it by reimporting the rig, I think I broke it when I connected humanoidrootpart to torso 2 times, now it rotates to the camera slowly