You know-how in all Roblox simulator games the numbers are compressed and turned into instead of 10,000 its 10K and instead of 1,000,0000 its 1M. How can I implement that into my script?
local plr = game.Players.LocalPlayer
local value = plr.Character:WaitForChild("LeftHand").Drinkies.Part.Value
value.Changed:Connect(function()
if value.Value == value.Parent.MaxValue.Value then
script.Parent.TextLabel.Text = value.Value.."/"..value.Parent.MaxValue.Value
script.Parent.Parent.FullBag.Visible = true
else
script.Parent.TextLabel.Text = value.Value.."/"..value.Parent.MaxValue.Value
end
end)

2 comments
Your formatting function will depend on how much precision you want to keep. For example, does 12345 become 12K or 12.3K or 12.35K, etc.?
https://forum.scriptinghelpers.org/topic/990/how-to-format-numbers-like-miners-haven-does