Best pickup script

I'm trying to make a basic pickup script that'll allow my player to collide with and destroy a box. I tried messing around with the collision and collider functions, but I couldn't get it to work right. What's the best way to make it so that when the player touches the object it will be destroyed?

var thisObject : GameObject; //This is your current object

OnTriggerEnter(other : Collider){

if(other.tag == "Player"){

Destroy(thisObject);  //just this will only destroy the script.
}