can somone tell me the 1000000 reasons this dont work im new to coding btw i had this idea but never got it to work i get no errors either so i dont know how to fix it Help pls
local streetlightsTable = game.Workspace.streetlights:GetChildren()
while true do wait()
for i, v in pairs(streetlightsTable) do
if game.Lighting.TimeOfDay == "<= 06:30:00" then
for i, v in pairs(streetlightsTable) do
v.Lights.Light.Enabled = true
end
elseif game.Lighting.TimeOfDay == ">= 06:30:00" then
for i, v in pairs(streetlightsTable) do
v.Lights.Light.Enabled = false
end
end
end
end
idk whats wrong but thinking now im wondering if its the greater than and less then symbols i dont know how to insert them exactly
