Character Moving Bugging Animation

I’m having a problem with my animation, my character is actually moving in the animation instead of walking in place, so when i apply my animation it bugs the movement, how can i make my animation just move in place? This is for the AI to walk around the map looking for the player.