How would i remake this type of movement?

Read title
I tried everything and its not working plsssssssssss
S

the basic idea of how I’d start implementing it would be like

isRight = true

on walking
   leg = selectLeg()
   set the bottom middle of the leg on the ground ~2 studs in front of the humanoidRootPart
   repeat
      rotate the leg around the bottom middle of the leg to face the hip
   until that leg moves again

function selectLeg()
   leg = right leg
   if not isRight
      leg = left leg
   return leg

and then one way to setup the leg to rotate around the bottom middle of the leg to face the hip is:

get the point 1/2 the length of the leg in the direction from the ground position towards the hip
   that's the position of the leg
set the rotation to be the same as the humanoid root part
then rotate it in the Z direction, "upwards", by the angle between the floor position and the hip position

Inverse Kinematics would be your best method