Pathfinding system

DISCLAIMER: I am NOT asking for scripts

so, let’s say there are grids and a soldier

and I wanted to make the soldier walk into the selected grid

but I wanted to make the soldier walk like this

I don’t want to use the Roblox’s standard PathfindingService since there are no obstacles in the area

how would I achieve this?
any useful links?

any helps are appreciated, as always :slight_smile:

Humanoid:MoveTo() can take position values.

1 Like

I know that thing exists, I wanted to know the paths, not how to move the Humanoid/Soldier, sorry

You can hack it by having invisible cancollide walls for those soldiers(pathfinding)

1 Like

You could make your own form of waypoints with Attachment instances, as they have their own positioning.

1 Like

You can make something like this:

local finalPos
local soldierPos
local human

human:MoveTo(Vector3.new(soldierPos.X,soldierPos.Y,finalPos.Z))
human.MoveToFinished:Wait()
human:MoveTo(finalPos)
1 Like

well, it navigates itself? (30s)

wdym by that?, with pathfinding + invisible walls with collision it’ll avoid the walls(not sure tho haven’t really tested it yet, but i assume so)

1 Like

I mean, it uses an algorithm to pathfind the selected grid

and there’s no obstacles so I’m not using the standard PathfindingService like what I said earlier

New post: