Stop NPC walking on certain parts

Hey Developers!

I am trying to make a system that allows NPC’s walk around my map, however I don’t want them to be able to walk on certain parts of the map. Is there any way to do this? I’ve done some research and can’t seem to find much that is any use.

Any help would be appreciated! :heart:

you can use Pathfinding Modifiers within PathfindingService