So Basically, I want to make it so that a specific light part goes off at the same time. I have multiple of these models. About 12 to be exact. All the models are named the same. So how do I make it so all the lights turn off at the same time?
for i,v in pairs(workspace.Lights:GetChildren()) do
v.LightPart.SpotLight.Brightness = 0.5
--etc etc etc
end
(this assumes all children of workspace.Lights have the same naming as your code (Lightpart.SpotLight)
To add onto this if you want all lights to turn off at the same time you might want to put
--start of the loop here
spawn(function()
--code that turns the lights off here
end)
--end it here
and .Enabled can only be true or false not 0.2 but I assume that was a typo