I'm making a button that will enable and disable a Particle Emitter after five seconds but nothing happens once I click the button.
function onClick()
game.Workspace.Part.ParticleEmitter.Enabled = true
wait(5)
game.Workspace.Part.ParticleEmitter.Enabled = false
end
script.Parent.ClickDetector:connect(onClick)

2 comments
Any error or something?
is the pointer cursor changed to a hand when you hover over it?