Trying to make a script that makes all dynamic lighting in Workspace turn on or off depending on the TimeOfDay. I'm more of a builder than a scripter... I copied a few lines from multiple scripts but it doesn't work.
local children = game.Workspace:GetChildren()
local l = game.Lighting:GetMinutesAfterMidnight()/60
for c = 1, #children do
if children[c].className == "SurfaceLight, PointLight"
then
children[c].Enabled = l18
end
end
- HabaneroDude |