I need help making directional strafing animations

I need help making direction animations when the player walks
but I don’t want footplanting

I’ve already tried a couple of solutions but they wont work.
I have already tried a couple of guides too but they wont help me,
unless I have like the bad side of youtube or something

I have tried checking the movement for the root part but it wont work (Makes the character not animate)

Have you used humanoid movedirection?