I'm not entirely sure on that, I've tried before to see if there was a better algorithm myself, but this is the best I can think of for Simple
local placeTables = {1000, 10000, 100000, 1000000}
local placeLetter = {
[placeTables[1, 3]] = "k";
[placeTables[4]] = m;
};
local player = game:GetService("Players")
local guiLabel = Player.LocalPlayer.PlayerGui.ScreenGui.Frame.TextLabel
local cashValue = Player.leaderstats.Cash.Value
while guiLabel do
if cashValue = placeTables[1,4] then
for_,Letter in ipairs(placeLetter) do
if cashValue == Letter then
guiLabel.Text = "Cash: "..cashValue..Letter
end
end
end
end
There's a high probability this won't work;/
2 comments
But how I make it into the text?
It already comes in text, you would just have to call the function.