Try this:
while wait(0.1) do
if game.Players.LocalPlayer.leaderstats.Coins.Value >= 1000 then
local shortAmt = tostring(game.Players.LocalPlayer.leaderstats.Coins.Value / 1000) .. "K"
script.Parent.Text = "Coins: " .. shortAmt
else
script.Parent.Text = "Coins : "..game.Players.LocalPlayer.leaderstats.Coins.Value
end
end
If it's greater than 1 million then do this:
while wait(0.1) do
if game.Players.LocalPlayer.leaderstats.Coins.Value >= 1000000 then
local shortAmt = tostring(game.Players.LocalPlayer.leaderstats.Coins.Value / 1000000) .. "K"
script.Parent.Text = "Coins: " .. shortAmt
else
script.Parent.Text = "Coins : "..game.Players.LocalPlayer.leaderstats.Coins.Value
end
end
3 comments
How Do I add Multiple
I edited my answer to show you how to do 1 mil. If this helped please accept the answer! Thanks!
If you wanted to combine them both than you would have to use an "else if"