You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? My leaderstat going higher than 10 trillion.
-
What is the issue? The issue is that my abbreviations only go up to 10.0T
-
What solutions have you tried so far? I have looked over the script and it looks good
local PlayerData = game.ServerStorage.PlayerData
local ChosenAbbre
local ChosenAbbre2
local Abbre = {
K = 4,
M = 7,
B = 10,
T = 13,
QD = 16,
QN = 19
}
while wait() do
local TimeText = tostring(math.floor(DataTime.Value))
for abbreviation, digits in pairs(Abbre) do
if #TimeText >= digits and #TimeText < (digits + 3) then
ChosenAbbre = abbreviation
break
end
end
if ChosenAbbre ~= nil then
local digits = Abbre[ChosenAbbre]
local rounded = math.floor(DataTime.Value / 10 ^ (digits - 2)) * 10 ^ (digits - 2)
Time.Value = string.format("%.1f", rounded / 10 ^ (digits - 1)) .. ChosenAbbre
else
Time.Value = DataTime.Value
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.