How to make straffing system with animations

hello, im trying to make my very own straffing system with walking animations based off what direction the player is moving. I need forward, back, left, right, and the ones in between those like walking forward and left at the same time

You could always take a look into Roblox’s strafing script and learn from there.

What is their straffing script. I didnt want to use their new staffing system because i only need it for walking and the run animations mess it up and stuff.