AI problems help Fast Response Please

So i have a basic AI as it does roam and chase once it sees you, but everytime i played he wasnt near me and i Died (Respawning too) and i watch were he goes and when he runs into trees he kills the player is there anyway to fix that and i hope im clear!