i need some correction in this code please

my paln is while moving my gameobject through y direction in 2d i want to click on a particular object and (touch screen) and which will disapper

var red : GameObject;
private var speed : Vector2 = Vector2 (0,0.5);
function FixedUpdate () {

rigidbody2D.MovePosition(rigidbody2D.position + speed * Time.deltaTime);

if (Input.touchCount > 0)
red = gameObject.FindWithTag(“player”);
Destroy(gameObject);
}

function Update () {
transform.Translate(Vector3.up * 5 * Time.deltaTime);
}

you can do this for moving your object.

For hitting object you can use RayCastHit,
Unity - Scripting API: Physics.Raycast

Thanks.