I made a enemy script but because of it I am having some problems

Hi guys I am using a script for my enemys now I Have a problem my charachter walks treu
walls how can i fix it my player is using a nav mesh agent and it is not working wel whit the requirements for my coliders

not sure what you said but if you mean your character with a navmesh is walking though walls, make sure when you bake the scene you label those walls so that the enemy knows that it can’t walk though them

@Valentinon13 : Please read and follow: How to Ask for Programming Help | Coding Killed the Cat

Problem fixt