How to make player animation stop affecting a certain part/joint programmatically?

I was making a gun in studio, its one of key feature is that it makes player point towards where its aiming, not the whole body but only torso/upper-torso.
Its good but when I walk with it the walk animation affects the upper-torso/torso that like in walk animation it shakes, its shaking like that.
How do I make sure that the animation stops affecting the upper-torso/torso programmatically?
I Want to support the player animation that that’s player animation works, only for bottom parts of character,


What you would do is make the gun holding animation a higher priority than the walk/run animation. Action1 priority should work fine. This overrides the run/walk animation so it no longer affects the character.


I Am Changing The Values Of The Motor6D Waist Joint In UpperTorso programaticlly and I ain’t using any animations.