Number filtering isn't work 100%
The problem isn't the NumberValue because the number limit is 99999989999999992000
But now the problem this only get it until 99T+ then it changes to 1e + 014 inside the textlabeL, inside leaderboad it will stay 100000000000. what could be the problem?
Module script: [Module script solved by BlueTaslem only one problem if value is 1 or 0 it breaks]
local module = {
['Game_Settings'] = {
['Kortere_Nummers'] = true
}
}
function module:ConvertKlein(num)
{1e36, suffix = "m+"}, -- megiillion
{1e33, suffix = "d+"}, -- decillion
{1e30, suffix = "n+"}, -- nonillion
{1e27, suffix = "o+"}, -- octillion
{1e24, suffix = "s+"}, -- septillion
{1e21, suffix = "L+"}, -- lilion
{1e18, suffix = "Q+"}, -- quintillion
{1e15, suffix = "q+"}, -- quadrillion
{1e12, suffix = "T+"}, -- trillion
{1e9, suffix = "B+"}, -- billion
{1e6, suffix = "M+"}, -- million
}
for _, power in ipairs(suffixes) do
if num > power[1] then
return math.floor(num / power[1]) .. power.suffix
end
end
end
return module
error: attempt to concatenate a nil value

1 comment
I'm not a expert in strings. But is the script in the text label a local script?