I made a light switch that controls only one light, here is the script used:
switch = script.Parent
light = game.Workspace.LIGHT.PointLight
switch.ClickDetector.MouseClick:connect (function()
if light.Enabled == false then
light.Enabled = true
switch.BrickColor = BrickColor.new("Lime green")
elseif light.Enabled == true then
light.Enabled = false
switch.BrickColor = BrickColor.new("Really red")
end
end)
How do I make more than one light turn on but with only using the one light switch? (I need 6 PointLight blocks to turn on with only one light switch on the wall)

3 comments
You would place this inside of the switch object that is being clicked. I have edited this multiple times so you may need to refresh the page to see the most recent version.
It works! Thank you so much!
No problem. It's what the site is for.