Help with animations

So basically i have a current animation, and based on if im walking or sprinting i change the current animation. The walking one works great, but the sprinting one is doing this thing:

robloxapp-20240323-2103356.wmv (3.3 MB)

All of the code is the same for both animations, the priority is the same (movement), the weight values are the same.

Why is it doing that? Why only on the sprinting animation?

Like how am i supposed to fix that.

Please help if you have any ideas!!!