lookat not updating my position(somebody out there has to know the answer)

This script is attached to my flyingEnemyPrefab. I have two cubes instantiating the flyingEnemy and this script makes the enemy fly to my location but when I move the enemies keep flying to my first location. The cubes are children of my player so they move along with me. If I walk to one side far enough and place the cube on top of my first location the enemies are literally flying straight down. I need for every new flying enemy that’s instantiated to fly to my current location at the point of its instantiation.

var player : Transform;
var moveSpeed = 5;
var minDist = 0;
function Update () 
	if(Vector3.Distance(transform.position,player.position) > minDist)
	transform.position += transform.forward * moveSpeed * Time.deltaTime;

I’m assuming you want the cubes to move towards the player/parent. You can use something like:

transform.localPosition = Vector3.MoveTowards(transform.localPosition, Vector3.zero, moveSpeed * Time.deltaTime);