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

help with particle emitters?

Asked by 4 years ago

ok so i am new to scripting however i have been a long time roblox builder now i have this really cool particle explosion and i need help with a script so that when you step on the brick the particles are enabled for 3 seconds then die off

1 answer

Log in to vote
1
Answered by 4 years ago

Here's a simple touch script...would go inside the part

local debounce = false

script.Parent.Touched:Connect(function()
    if not debounce then
        debounce = true
        script.Parent.ParticleEmitter.Enabled = true
        wait(3)
        script.Parent.ParticleEmitter.Enabled = false
        debounce = false
    end
end)
0
TYSM supersoli12345 6 — 4y
0
please accept the answer if it helped :) ForeverBrown 356 — 4y
Ad

Answer this question