Hi there!

I tryed to make a script that is based on time like if it's 06:00 the street lights turn off and at 17:00 on.

I already have a time script but can someone help me with how to automaticaly turn on like 100 lights if it's like 07:00 at the time script under this text

wait(0)
local t = os.time()
local hour = 0
local min = 0
local Time = "12:00"


function getTime()
	local min = math.floor((t/60)%60)
	local hour = math.floor((t/3600)%24)
	min = tostring((min < 10 and "0" or "") .. min)
	local c = ":",(" " or "")
	Time = (hour + 2 .. c .. min )
	game.Lighting.TimeOfDay = (hour .. c .. min )
end

function display(start)
	if (start) then
		getTime()
		delay(0,function()
			for i = 1,0,-0.05 do
				script.Parent.Time.TextTransparency = i,i
				wait()
			end
			script.Parent.Time.TextTransparency = 0,0
		end)
	end
	script.Parent.Time.Text = Time	-- ORLY?
end


function start()
	display(true)
	while (true) do
		-- Simplicity FTW:
		t = tick()
		getTime()
		display()
		wait()
	end
end

start()

thanks!