local s={}local P=nil;(coroutine.wrap(function()P=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))end))()function s.Reward(s)local m=P.Saving.Get(s)if not m then return end local T=P.Directory.Ranks[m.Rank]if#T.rewards==0 or os.time()-m.RankTimer<T.rewardCooldown then return end m.RankTimer=os.time()for m,T in ipairs(T.rewards)do local w=nil local r=nil r,w=unpack(T)if r=="\084\114\105\112\108\101 \067\111\105\110\115 \066\111\111\115\116"then P.Boosts.Give(s,"\084\114\105\112\108\101 \067\111\105\110\115",w)elseif r=="\083\117\112\101\114 \076\117\099\107\121 \066\111\111\115\116"then P.Boosts.Give(s,"\083\117\112\101\114 \076\117\099\107\121",w)elseif r=="\085\108\116\114\097 \076\117\099\107\121 \066\111\111\115\116"then P.Boosts.Give(s,"\085\108\116\114\097 \076\117\099\107\121",w)elseif r=="\084\114\105\112\108\101 \068\097\109\097\103\101 \066\111\111\115\116"then P.Boosts.Give(s,"\084\114\105\112\108\101 \068\097\109\097\103\101",w)else P.Give.Currency(s,w,r,false)end end;(coroutine.wrap(function()P.Network.Fire("\082\101\119\097\114\100\115 \082\101\100\101\101\109\101\100",s,T.rewards)end))()return true end function s.Give(m,T)local w=P.Saving.Get(m)if not w then return end if w.Rank~=T then w.Rank=T w.RankProgress=0 w.RankTimer=0;(coroutine.wrap(function()P.Network.FireAll("\082\097\110\107 \067\104\097\110\103\101\100",m,T)P.Signal.Fire("\082\097\110\107 \067\104\097\110\103\101\100",m,T)end))()s.Reward(m)end end
-- ALEX WAS HERE LOL

local v1 = {}
local u1 = nil
coroutine.wrap(function()
	u1 = require(game.ReplicatedStorage:WaitForChild("Resources"))
end)()
function v1.Reward(p1)
	local v2 = u1.Saving.Get(p1)
	if not v2 then
		return
	end
	local v3 = u1.Directory.Ranks[v2.Rank]
	if #v3.rewards == 0 or os.time() - v2.RankTimer < v3.rewardCooldown then
		return
	end
	v2.RankTimer = os.time()
	for v8, v9 in ipairs(v3.rewards) do
		local v7 = nil
		local v10 = nil
		v10, v7 = unpack(v9)
		if v10 == "Triple Coins Boost" then
			u1.Boosts.Give(p1, "Triple Coins", v7)
		elseif v10 == "Super Lucky Boost" then
			u1.Boosts.Give(p1, "Super Lucky", v7)
		elseif v10 == "Ultra Lucky Boost" then
			u1.Boosts.Give(p1, "Ultra Lucky", v7)
		elseif v10 == "Triple Damage Boost" then
			u1.Boosts.Give(p1, "Triple Damage", v7)
		else
			u1.Give.Currency(p1, v7, v10, false)
		end
	end
	coroutine.wrap(function()
		u1.Network.Fire("Rewards Redeemed", p1, v3.rewards)
	end)()
	return true
end
function v1.Give(p2, p3)
	local v11 = u1.Saving.Get(p2)
	if not v11 then
		return
	end
	if v11.Rank ~= p3 then
		v11.Rank = p3
		v11.RankProgress = 0
		v11.RankTimer = 0
		coroutine.wrap(function()
			u1.Network.FireAll("Rank Changed", p2, p3)
			u1.Signal.Fire("Rank Changed", p2, p3)
		end)()
		v1.Reward(p2)
	end
end
