Note:This is not a script request. Just wanna know if its doable and if yes, with what method.

I'm trying to make an AI and whenever the player touches the wall between npc and player it doesnt detect the wall.