How do I make a pet following system with raycasting?

Hey guys.
I’ve been really wanting to make a pet following system similar to Adopt Me, where the pet moves to your side, and ducks obstacles with raycasting.
I am not good with CFrames, raycasting, or pathfinding. I need help doing all this. I’m not asking for code, just maybe a place to start or how to do it.

1 Like

Search up a tutorial, Heres a good one for flying ones

uhm that’s just one with body position. i mean one that uses pathfinding and can detect obstacles.
i already know how to make one like that

Oh sorry Just saw pet system my bad