Hey I want a NPC to find its path like pathfinding AI but I want the NPC to move to Random Locations It Always Gets Stuck In the rocks and I tried some Scripts but they didnt worked

3 comments

0

First create a set of valid positions - this can be done by placing parts there, or using math.random - (though you would have to check any positions given by math.random aren't inside other parts), then use some pathfinding system to go there.

0

If the NPC is able to climb the rocks to reach its destination, the pathfinding AI will consider the rocks as part of the path the Humanoid would take. You can whitelist the rocks and force the AI to traverse around them.