I understand particles and how to add them to parts. But what I'm really lost with is how to add temporary particles, more specifically, particles for guns. I don't know how to code my particles so that they appear only for a fraction of a second when firing a gun, then make them disappear. Any help would be greatly appreciated because I really need gun particles to make my game realistic.
I suppose what would work is after the fire event making it non-Transparent then doing like a wait(.1) then making it Transparent once more
Example Edit:
function fire() script.Parent.ParticleEmitter.Transparency = 0 wait(.1) script.Parent.ParticleEmitter.Transparency = 1
P.S. I'm not very good at scripting guns, but this is merely an example of what I think it should look like.