How to destroy a transform's parent object.

I'm doing the 3D Platformer tutorial.

I've got my CopperDead prefab, which is an entire dead copper model, but instantiated as a transform in the EnemyDamage.js script, here:

    var deadModel = Instantiate(deadModelPrefab, transform.position, transform.rotation);

Onto my CopperDead prefab, I've added a new script, FadeOutAndDie.js. My goal is to not have the place littered with dead cops but, rather, for them to alpha-fade out, then be destroyed.

...Except I'm not allowed to

Destroy(gameObject);

since that points to a transform, at this point in time. So I tried doing

Destroy ((gameObject as Transform).parent);

but I get a null-pointer error (which is a bit confusing, but that's another question for after I've done more reading.)

So my question is: what's the thing I want to Destroy to get rid of the [dead] robot whose transform I happen to have in my gameObject variable?

Thanks!

Ok, well... that was dumb. It turns out that all needed to do was change...

var deadModelPrefab : Transform;
var deadModel = Instantiate(deadModelPrefab, transform.position, transform.rotation);

to

var deadModelPrefab : GameObject;
var deadModel = Instantiate(deadModelPrefab, transform.position, transform.rotation);

D'oh! Then, in my FadeOutAndDie.js,

Destroy(gameObject);

works just fine.

Sorry about the dumb n00b question -- seems you always find the answer 10 sec after typing the question & hitting send, eh?