I am trying to make a Time Of Day Alert GUI I have amde the script and the GUI but it wont work please help.

If you cant explain can you come on studio and help me?

--Environment Tracking
local timeOfDayNotifications={
	["12:00:00"]={
		title="Break Time";
		desc="Go have fun, and workout!";
	}
}
local envTracker,currentTimeNotification
envTracker=heartbeat:connect(function()
	if not currentTimeNotification then
		for a,b in next, timeOfDayNotifications do 
			if lighting.TimeOfDay==a then
				currentTimeNotification=b
				openNotification(b.title,b.desc, function()
					currentTimeNotification=nil
				end)
			end	
		end	
	end
end)

PART 2


--Service shorthands
local tS=game:GetService("TweenService")
local lighting=game.Lighting
function tween(t,s,d,p,o)
	return tS:Create(o,TweenInfo.new(t,Enum.EasingStyle[s],Enum.EasingDirection[d]),p)
end

--Environmnet Controller
spawn(function()
	while wait(1) do
		tween(1,"Sine","Out", {ClockTime=lighting.ClockTime+1/60},lighting):Play()
	end
end)