Enemy AI

i started searching for scripts for my enemy to walk slowly to my hero.
but then none of my researches never worked.
some worked but then everytime it died when i shot it the blood coming out of body animation worked but it kept moving torwards my hero…

can someone help me out here?