local function H(H)local G=H.Character or H.CharacterAdded:wait()local n=G:WaitForChild("\072\117\109\097\110\111\105\100")local Q=Instance.new("\070\111\108\100\101\114")Q.Name="\115\116\097\116\115"Q.Parent=H local O=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")O.Name=GameSettings.pointsName O.Value=DataStore:GetCurrentPoints(H)O.Parent=Q local Y=Instance.new("\073\110\116\086\097\108\117\101")Y.Name="\084\111\116\097\108"..GameSettings.pointsName Y.Value=DataStore:GetTotalPoints(H)Y.Parent=Q local u=Instance.new("\073\110\116\086\097\108\117\101")u.Name=GameSettings.upgradeName u.Value=DataStore:GetUpgrades(H)u.Parent=Q end
-- Local Functions
local function setupPlayerStats(player)
	local character = player.Character or player.CharacterAdded:wait()
	local humanoid = character:WaitForChild("Humanoid")

	local stats = Instance.new("Folder")
	stats.Name = "stats"
	stats.Parent = player

	local points = Instance.new("NumberValue")
	points.Name = GameSettings.pointsName
	points.Value = DataStore:GetCurrentPoints(player)
	points.Parent = stats

	local totalpoints = Instance.new("IntValue")
	totalpoints.Name = "Total" .. GameSettings.pointsName
	totalpoints.Value = DataStore:GetTotalPoints(player)
	totalpoints.Parent = stats

	local upgrade = Instance.new("IntValue")
	upgrade.Name = GameSettings.upgradeName
	upgrade.Value = DataStore:GetUpgrades(player)
	upgrade.Parent = stats
end
