How do I prevent leg movement when playing this animation?

As you can see, in the first image, I am walking while the animation plays. This is what I want, and is fine.

However, in the following image, I am idle, and the legs move with the torso in the animation. I want the legs to stay still, as if they continued with the idle animation.

How can I achieve this?
Note: Animation priority is action, since the drinking of the potion is, ya know, an action

4 Likes

If you tilt the HumanoidRootPart in your animation I think the hip, neck and shoulder joints tilt along with it.
If the torso is tilting back 5 degrees then tilt the legs back 5 degrees as well so they appear straight up and down.

2 Likes

You can try setting the .Transform of the leg joints to

CFrame.new()

to make them not move.

1 Like

The problem with that is that by moving the legs, they are added as a keyframe
This means that that is part of the animation and will play regardless, meaning if I’m walking it will look as though I’m standing still

Ah, sorry I misunderstood.
Wouldn’t it be easier to have 2 animations? 1 for walking with the animation, 1 for idle with the animation?