How do i make a note algorithm without using advanced hacky codes such as A*, Neural network

You see… the purple part is the target, and the car npc can only go on the green nodes.
My car has a system where it throttles or steering in targets, but how do i make it like so the Target objectvalue changes to the node it finds the best?
I’m not professional in A* and neural network, i barely even know how to use it.
Please help.

so it can make something like this:

1 Like

Could you not use PathfindingService? I have no idea if it will work for what your looking for however due to it being mainly used for NPC’s I think.

Yeah, but only on green nodes. anyway to just make it only to green nodes? so it will make relatively similar ways.

Character Pathfinding | Roblox Creator Documentation

[Costs]: Table of materials or defined PathfindingModifiers and their cost for traversal. Useful for making the agent prefer certain materials/regions over others. See Pathfinding Modifiers for details.

Use “Costs” to detect the nodes you don’t want to drive on
(e.x you want to drive on concrete instead of grass)

i meant, like so it only use nodes as its way, damn i must say correctly next time.

I have a module that can help you with A*