Particle effect spawn help

I have wrote this script that is attached to my enemy, I have another script attached to my gun that shoots raycasts that if hit the enemy, takes of health. I am now trying to have a particle effect spawn when the enemy dies, I have almost done this apart from my particle effect doesn’t spawn where the enemy has died, can anyone help me?

var health = 100;

var death : ParticleEmitter;

function Damage(dmg: int){

health -= dmg;

if (health <= 0){

Instantiate(death);

Destroy(gameObject);

}

}

var death : Transform;

    //Instantiate takes 3 arguments. Object, position and rotation.
Instantiate(death, transform.position, transform.rotation);

Use the scripting reference for stuff like this.