How to make a npc walk randomly that doesn't go into the building

So I want to make a area of a npc can walk around randomly in but I have some decorations in the middle, but what if the npc makes a waypoint inside of the decoration? How would I cancel it

If you are using pathfinding service it most likely won’t, but if it does you can use Pathfinding Modifiers inside a part to discourage the npc from walking there

How are you setting the Position of the waypoint?
If you script it you can use the same type of math I used in this post: How to find random position in area with no centre? - #2 by Scottifly

Here’s a great tutorial on Pathfinding as well: Character Pathfinding