function abbreviateNumber (n)
local s = tostring(math.floor(n))
return string.sub(s, 1, ((#s - 1) % 3) + 1) .. ({"", "K", "M", "B", "T", "QA", "QI", "SX", "SP", "OC", "NO", "DC", "UD", "DD", "TD", "QAD", "QID", "SXD", "SPD", "OCD", "NOD", "VG", "UVG"})[math.floor((#s - 1) / 3) + 1]
end
script.Parent.Text= "Coins = ".. abbreviateNumber(game.Players.LocalPlayer:WaitForChild("leaderstats"):FindFirstChild("Coins").Value)
I am trying to show the coins a player has but abbreviating it but it shows nothing
there are no errors