Does anyone have a script or will be able to help me with this? I am trying to make a gui that is a 1 tab when you click it the light turns on, when you click it again the light turns off.
Thanks :)
I'm not going to go out of my way to make something, but here's what it should look like:
Create a GUI button, put a local script in it. create a block or something and put a light source in it.
Put this in the button's script:
light = --Put path to light here function onClicked() if light.Enabled == true then light.Enabled = false else light.Enabled = true end end script.Parent.MouseButton1Down:connect(onClicked)
You'll have to iron out the details, but this is basically how it should look.