Hi!
Is there a way to make spin numbers 5-10sec?
My friend asked me to make "lotto" for his business
I got help with one but it's to fast, clicking and number appears in inputs...
Need to make it more like casino slots between 001-999 three inputs...
Is there a way to make spin numbers 5-10sec?
My friend asked me to make "lotto" for his business
I got help with one but it's to fast, clicking and number appears in inputs...
Need to make it more like casino slots between 001-999 three inputs...
Code:
local tLine = {}; while #tLine < 3 do local nNum = string.format("%02d", Math.Random(1, 999)); while Table.Find(tLine, 1, nNum, false) ~= nil do nNum = string.format("%02d", Math.Random(1, 999)); end -- tLine[#tLine+1] = nNum; end tAllLines[#tAllLines+1] = tLine; Input.SetText("Num1", string.format("%s", tLine[1])); Input.SetText("Num2", string.format("%s", tLine[2])); Input.SetText("Num3", string.format("%s", tLine[3])); -- local tLines = {}; for x, y in ipairs(tAllLines) do tLines[#tLines+1] = string.format("%s", table.concat(y, ", ", 1, #y)); end Input.SetText("Input2", table.concat(tLines, "\r\n", 1, #tLines));
Comment