--[[ DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING! ]]
--

game.Players.PlayerAdded:Connect(function(player)
	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = player
	
	local value = Instance.new("IntValue")
	value.Name = "Coins"
	value.Value = valueData:GetAsync(player.UserId) or startingValueAmount
	value.Parent = leaderstats
	
	value.Changed:Connect(function()
		 valueData:SetAsync(player.UserId, value.Value)
	end)
end)
