The problem with HumanoidStateType.Physics

Hello devforum!
I recently had a difficulty using HumanoidStateType.Physics. I just started studying this topic yesterday, turning on alignorientation, and ran into
some difficulties. My problem is using HumanoidStateType.Physics in my web-based swing system, and I can’t figure out how to achieve player alignment so that it doesn’t sway from side to side.
I tried to use alignOrientation, however, it did not bring me the desired result, probably because my knowledge in this matter is limited. Please read the video demonstrating my problem:

I will be very grateful for any help!