they do, but very slowly. the npc doesnt go to it cause of what i said before. (also its not sometimes, its literally just broken)
i also think thats what is happening but before it worked fine and MoveToFinished:Wait() would work when the npc finishes the pathfinding.
where should i in the for loop?
so i just found out that if i go back to this code
it works, so im wondering what could make the code im using now break vs this old code
so everything works fine however i still have one problem. how could i detect when the path actually finishes, not when it completes one waypoint?
The path is finished when the for loop ends, i.e.;
for _, waypoint in pairs(path:GetWaypoints() do
...
end
print("Path finished!")
2 Likes