Trying to script some particle emitters to enable and disable depending on if a boolvalue in the workspace is true or false. For some reason it doesn't work, I have the boolvalue set to turn true or false depending on the button pressed in the workspace, which works fine, but the particle emitters dont enable themselves when I press the button. Not sure what I'm doing wrong. Is ROBLOX just not able to do it or is it me?
if game.Workspace.ConfettiEnabled.Value==true then
script.Parent.Enabled=true
else
script.Parent.Enabled=false
end

1 comment
You did not set it up to fire a second time, or to fire when the Button is pressed.