How to do a plane follower?

I Need a plane that follows the player, only the x,z position, as I have put a camera from the sky to indicate where the player if you enable this camera, as I can do and try transform.Translate (player.transform. position) but doesn’t work , and many more that I have seen but I like a little guidance

Thanks

Why not use Transform.LookAt and then Transform.translate? Easiest way to do AI imho.

How about making the plane a child of the player in the Hierarchy? If you want smooth movement you can use something like this on your following object (not having it as a child):

var player : Transform;
var speed : int = 2;
var objHeight : int = 50;

function Update() {
transform.position.x = Mathf.Lerp(transform.position.x, player.transform.position.x, Time.deltaTime*speed);
transform.position.z = Mathf.Lerp(transform.position.z, player.transform.position.z, Time.deltaTime*speed);
transform.position.y = objHeight;
}

(not tested)

i dont know the answer but i would like to preview your game or at least know its name so i can view it.
Thank you for your time.