So far this is my script but does work...I just took a long time to make it and wondering if anything easier. I am still trying to figure it out so I don't have lots of part to name.
I used to named my parts like Part1 Part2 Part3 and then a run a code like this
script.Parent.MouseButton1Down:Connect(function()
if game.Workspace.Games.Pool.Lights.Value.Value == true then
game.Workspace.Games.Pool.Lights.BigLight.SurfaceLight.Enabled = false
game.Workspace.Games.Pool.Lights.Value.Value = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights1.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights2.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights3.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights4.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights5.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights6.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights7.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights8.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights9.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights10.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights11.LightPart.SpotLight.Enabled = false
game.Workspace.Games.Pool.Lights.LightSectionSeven.PoolLights12.LightPart.SpotLight.Enabled = false
Is there anyway I can make this easier? If I named them all PoolLights and they would all turn on instead of numbering 100 lights? Like make a model and all the childrens in that model will turn on?
Seems like I am doing something wrong.

2 comments
please put your code in correctly
Ok its been put correctly.