Might sounds stupid i understand, is possible to calculate the fastest route from part A to part B. For example like a GPS the car knows the best way from your start location to your destination.
I understand it might be very complicated but worth a try to be fair.
You can use Pathfinding for several reasons, not just NPCs or players. Follow the steps here Character Pathfinding | Documentation - Roblox Creator Hub to learn more about pathfinding. You can there skip the steps where it actually moves a character.
Yes, it even works with parts. However, that’s a bit more complicated from what I have tested in the past. Parts don’t turn automatically like characters of NPCs and players do and when creating waypoints, you also have to make sure to adjust the so-called agent-settings. But I haven’t really worked with it yet, just tried it out and played around with it a bit.
// EDIT: To clarify, parts will also find their way but with turning around I meant their facing. Like if you make a cube go from a to b, it won’t change it’s facing depending on where it goes to, you would need to do that yourself (from what I know).