Orient Pawn Rotation to Movement?

How would I go about replicating the “orient rotation to movement” on a pawn?

Some solution?? I have the same problem