How do I make one pilot like this?

How do I make one auto pilot system, which can detect lane, and go on lane, and can move
https://www.roblox.com/games/6436660879/Auto-Pilot-on-a-2018-Tesla-Model-S#!/about

Use this

https://developer.roblox.com/en-us/api-reference/class/PathfindingService