Everything works fine, just on the Lights1 it has 5 children, Light1, Light2 etc. Only the first 3 lights change to blue (127/225) the others stay white. Lights2 has 2 children and they both go to blue. Here's the script:
Lights1 = game.Workspace.LightSet1.Lights:GetChildren()
Lights2 = game.Workspace.LightSet2.Lights:GetChildren()
function onClick(click)
for i,v in pairs(Lights1) do
Lights1[i].Color = Color3.new(0, 0, 127/255)
Lights2[i].Color = Color3.new(0, 0, 127/255)
script.Parent.Material = Enum.Material.Neon
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)

1 comment
Ah, thanks so much!