Guest User

Untitled

a guest
Jan 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. function spam(num, max)
  2.     if num <= max then
  3.         tempTimer(2,
  4.             function()
  5.                 echo("NEW NUMBER TEST:"..num.."\n")
  6.                 for i = 1, num do
  7.                     echo(i.."\n")
  8.                 end
  9.                
  10.                 if num < max then
  11.                     spam(num+1,max)
  12.                 else
  13.                     echo("TEST ENDED ON "..num.."\n")
  14.                 end
  15.             end
  16.         )
  17.     else
  18.         echo("TEST ENDED\n")
  19.     end
  20. end
  21.  
  22. spam(1, tonumber(matches[2]))
Add Comment
Please, Sign In to add comment