public Transform target; void Update () { Vector3 wantedPos = Camera.main.WorldToScreenPoint(target.position); transform.position = wantedPos; }