local h=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local e=game:GetService("\082\117\110\083\101\114\118\105\099\101")local A=game:GetService("\068\097\116\097\083\116\111\114\101\083\101\114\118\105\099\101")local q=game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")local E=game:GetService("\068\101\098\114\105\115")local o=game:GetService("\080\104\121\115\105\099\115\083\101\114\118\105\099\101")local J=game:GetService("\067\111\108\108\101\099\116\105\111\110\083\101\114\118\105\099\101")local R=game:GetService("\072\116\116\112\083\101\114\118\105\099\101")local V=game:GetService("\083\101\114\118\101\114\083\116\111\114\097\103\101")local y=game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")local r=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local u=require(h.Modules.GameUtil)e.Heartbeat:connect(function()local e=h.Constants.MinutesAfterMidnight.Value local A,q=u.GetDayPhase()local E=q.tock*10 h.Constants.MinutesAfterMidnight.Value=math.clamp(e+E,0,1440)if h.Constants.MinutesAfterMidnight.Value>=1440 then h.Constants.MinutesAfterMidnight.Value=0 end end)

local Rep = game:GetService("ReplicatedStorage")
local Run = game:GetService("RunService")
local DS = game:GetService("DataStoreService")
local MS = game:GetService("MarketplaceService")
local Debris = game:GetService("Debris")
local Physics = game:GetService("PhysicsService")
local CS = game:GetService("CollectionService")
local HTTP = game:GetService("HttpService")
local SS = game:GetService("ServerStorage")
local SSS = game:GetService("ServerScriptService")
local UIS = game:GetService("UserInputService")


local GU = require(Rep.Modules.GameUtil)

Run.Heartbeat:connect(function()
	local minutesAfterMidnight = Rep.Constants.MinutesAfterMidnight.Value
	local dayPhase,phaseData = GU.GetDayPhase()
	local amount = phaseData.tock*10
	
	Rep.Constants.MinutesAfterMidnight.Value = math.clamp(minutesAfterMidnight+amount,0,1440)
	
	if Rep.Constants.MinutesAfterMidnight.Value >= 1440 then
		Rep.Constants.MinutesAfterMidnight.Value = 0
	end
	
end)
