How to make an animation follow the target?

Hi guys im a newbie and noob to unity 3d. I would like to ask a question. I made an animation using the animation view, and i attached it to my cube, and then the cube to the FPS walker. Then when i start my animation, the cube appears in other place and continues the animation. How do i fix this?

Probably you when you start the animation of the cube it is transfered to the position where you actually recorded the animation. What you have to do is make sure the animation starts at (0,0,0) and then put the Cube into another GameObject so the animation will be relative to the parent object.

try the smooth follow script maybe?