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
COMMUNITY QUESTION
How Do I make My NPC Find Its Path As It Keeps Getting Stuck In The Rocks?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
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.
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.
https://developer.roblox.com/en-us/articles/Pathfinding