Follower / Pet system?

In terms of that, how would I go about it?
Below is the form of movement I’m attempting to achieve.