game.Players.PlayerAdded:Connect(function(plr)
	local stats = Instance.new("Model", plr)
	stats.Name = "Leaderstats"
	local cash = Instance.new("NumberValue", stats)
	cash.Value = 0
	cash.Name = "Cash"

	
	 return #cash.Value % 3 == 0 and cash.Value:reverse():gsub("(%d%d%d)", "%1,"):reverse():sub(2) or cash.Value:reverse():gsub("(%d%d%d)", "%1,"):reverse()
end)

it say that the value is a number value