Strafing animations by rotating legs

basically i want to make strafing animations by just rotation the legs but i did it and the result was terrifiying. basically results were that the legs were rotated 90 degrees by the motor6d.C0 but the animations were still going forward