Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I abbreviate numbers?

Asked by 3 years ago

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.

0
Do you mean making a variable? bdam3000 125 — 3y
0
He means cash suffixes. Ziffixture 6913 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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
0
That's not what they asked for. Ziffixture 6913 — 3y
Ad

Answer this question