I want to be able to press a button and the particle emitter to turn off, but it isn't working. This is what I have right now.
function onClicked(playerWhoClicked)
script.Parent.Parent.Fire1.Flame.Lifetime.Max.Value = 0
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
If someone could tell me what I'm doing wrong or even how to make the script set the rate to 0, that would be really great.

2 comments
Thank you! This worked perfectly!
You're more than welcome! :D