Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I abbreviate numbers?

Hello! I wonder how i abbreviate numbers in leaderstats and text gui's. My leaderstats is already created so dont include one in a script. The 2 leaderstats Value are Speed and Money. Pls i rlly need help.

2 comments

0

Do you mean making a variable?

0

He means cash suffixes.

1 answer

so if you want it displayed you want to put these in text labels put this in a localscript in the screen ui, not in the frame. (not tested)

local player = game.Players.LocalPlayer
local leaderstats = player.leaderstats

--assuming this script is in a screengui with the texts displayed in it
script.Parent.Frame.SpeedLabel.Text = "Speed: "..leaderstats.Speed.Value
script.Parent.Frame.MoneyLabel.Text = "Money: "..leaderstats.Money.Value

1 comment

0

That's not what they asked for.

This discussion is preserved as it was. New answers, comments, and votes are closed.