All i want to do is click gameobject, play sound & destroy object as to pickup an item

void OnMouseDown() {
GetComponent().Play();
{
Renderer=false;
}

}

}

I don’t have much experience in C# so this is in JavaScript

var pickupSound : AudioClip;

function OnMouseDown () {
    AudioSource.PlayClipAtPoint(pickupSound, transform.position);
    //Do your pickup action
    GameObject.Destroy(gameObject);
}