function Main.new(G,r)for r,t in statesTemplate:GetChildren()do(t:Clone()).Parent=G end local t=r.Main local q={}q.Data=t q._player=G q.JoinTime=os.time()q.LastPlayTime=t.LastPlayTime q.FirstJoinTime=t.FirstJoinTime setmetatable(q,Main)return q end

function Main.new(player, data)
	for _, v in statesTemplate:GetChildren() do
		v:Clone().Parent = player
	end
	
	local dataScope = data.Main
	local self = {}
	self.Data = dataScope
	self._player = player
	self.JoinTime = os.time()
	self.LastPlayTime = dataScope.LastPlayTime
	self.FirstJoinTime = dataScope.FirstJoinTime
	
	setmetatable(self, Main)
	return self
end
