Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

invalid argument #2 to 'random' (interval is empty). math.random has not working?

Asked by 3 years ago

???????? ???:

local suffixes = {'',' ?????',' ???.',' ????.',' ??.',' ?????.',' ?????.'} local function sort(val) for i=1, #suffixes do if tonumber(val) < 10^(i3) then return math.floor(val/((10^((i-1)3))/100))/(100)..suffixes[i] end end end

local view = math.random(1, 5000000000) -- in this stroke error

while wait() do script.Parent.Text = sort(view) end

Answer this question