Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ParticleEmitter Rate ?

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

1 comment

0

Nevermind, i figured it out that the Part was touching other part forgot to put a humanoid.

1 answer

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)

2 comments

0

no.. it doesn't work it already stays at 1000 when games launched.. :)

0

Ooh, sorry! x3

This discussion is preserved as it was. New answers, comments, and votes are closed.