local J=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local s=require(J:WaitForChild("\078\101\118\101\114\109\111\114\101",5))local p=s("\114\113\117\101\114\121")local Z={}local d=0 local t=0 local F=p.GetOrAddItem("\077\097\112\080\117\114\103\101\080\114\111\111\102","\070\111\108\100\101\114",game:GetService("\087\111\114\107\115\112\097\099\101"))local G=Instance.new("\073\110\116\086\097\108\117\101",F)G.Name="\084\105\109\101"function Z.StartTimer(s,J)d=tick()t=J spawn(function()repeat G.Value=t-(tick()-d)wait()until G.Value<=0 G.Value=0 end)end function Z.TimerDone(J)return tick()-d>=t end return Z
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local require = require(ReplicatedStorage:WaitForChild("Nevermore", 5))
local rq = require("rquery")
local TimeManager = {}

-- Local Variables

local StartTime = 0
local Duration = 0

-- Initialization
local MapPurgeProof = rq.GetOrAddItem("MapPurgeProof", "Folder", game:GetService("Workspace"))
local Time = Instance.new('IntValue', MapPurgeProof)
Time.Name = 'Time'

-- Functions

function TimeManager:StartTimer(duration)
	StartTime = tick()
	Duration = duration
	spawn(function()
		repeat 
			Time.Value = Duration - (tick() - StartTime)
			wait()
		until Time.Value <= 0
		Time.Value = 0
	end)
end

function TimeManager:TimerDone()
	return tick() - StartTime >= Duration
end

return TimeManager
