Prefab disappears

I made a flame thrower and had the small flames attach to it but when I stop the flames the prefab disappears.

Here is the code:

var flames : ParticleEmitter;
var gunSound : AudioSource;
function Update () {
	if (Input.GetButtonDown("Fire1"))
	{
		flames.emit = true;
		 gunSound.Play();
	}
	
	if (Input.GetButtonUp("Fire1"))
	{
		flames.emit = false;
	}
}

function Start () {
	Screen.lockCursor = true;
}

Do you have autodestruct set in the Particle Animator? This will destroy the object as soon as it has no particles left.

Thank You!!! :smile:

“When a project is finished it isn’t, there is always room for more”