Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ParticleEmitter Rate ?

Asked by
Bulvyte 388 Moderation Voter
8 years ago
Edited 8 years ago
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

0
Nevermind, i figured it out that the Part was touching other part forgot to put a humanoid. Bulvyte 388 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

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)
0
no.. it doesn't work it already stays at 1000 when games launched.. :) Bulvyte 388 — 8y
0
Ooh, sorry! x3 Strykebyte 45 — 8y
Ad

Answer this question