Can't destroy another object on trigger

I have a script which to me looks like it SHOULD destroy another object tagged “barrel” is something with the tag “Player” runs into whatever object this script is placed on, and then emit particles 10 seconds AFTER it has been destroyed. Any ideas on why this wouldn’t be working?

function OnTriggerEnter (other:Collider)
{
	if (other.gameObject.tag=="Player")
		{
			Destroy(GameObject.Find("barrel"));
            yield WaitForSeconds(10);
			particleEmitter.emit = true;
		}
}

You yield is doing nothing! It’s at the end of the routine - put it in front of the line enabling the particles.

If it’s the object that you want destroy which have this script so it can’t work.

You can’t destroy the object himself.