How to make the entities avoid the building?

I’m making a system where the entities avoid the building and wander around outside. But I don’t know how.

Any help is appreciated, thanks.

I would suggest using pathfinding system to locate where the buildings are in order to make the humanoid avoid it, all though pathfinding system isn’t the best it might help. Heres an article about it: Character Pathfinding | Documentation - Roblox Creator Hub