fountain = script.Parent.ParticleEmitter debounce = false function onTouch() if debounce == false then debounce = true fountain.Rate = 1000 wait(0.2) fountain.Rate = 20 debounce = false end end script.Parent.Touched:connect(onTouch)
How do u do it correctly ? i have no idea where to find how to script the rate thing about particleemitters
If the problem is the rate not looking like it's at 1000, it's because the wait period is too short for it to be seen! C:
Trying setting the wait period higher.
local fountain = script.Parent.ParticleEmitter local debounce = false function onTouch() if debounce == false then debounce = true fountain.Rate = 1000 wait(20) fountain.Rate = 20 debounce = false end end script.Parent.Touched:connect(onTouch)