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
01fountain = script.Parent.ParticleEmitter
02debounce = false
03function onTouch()
04    if debounce == false
05        then debounce = true
06        fountain.Rate = 1000
07        wait(0.2)
08        fountain.Rate = 20
09        debounce = false
10    end
11end
12 
13script.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.

01local fountain = script.Parent.ParticleEmitter
02local debounce = false
03 
04function onTouch()
05    if debounce == false then
06    debounce = true
07        fountain.Rate = 1000
08        wait(20)
09        fountain.Rate = 20
10        debounce = false
11    end
12end
13 
14script.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