Laser Gun Issues

I am trying to make a laser gun, that when shot, starts a particle effect that I already have downloaded. But when I fire the gun, nothing happens. I have checked to make sure that all variables are assigned correctly. It could be that the previous muzzle flash was a Transform, and this is a particle effect, but if so, what would the syntax be to change it? Thanks in advance.

This was a good tutorial, but the main thing i’m having trouble with is creating and destroying the beam when my gun fires. Also, I am using Java script.

I actually figured it out. First of all, I needed to make it stop playing on awake, then after that, I dragged each lower part of the particle system into the muzzle flash slot instead of the empty they were assigned to. then it worked just fine. still a bit figity though