Advertisement
CaptainSpaceCat

Global Variable Creator

May 28th, 2015
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. program = shell.getRunningProgram()
  2. oTemp = fs.open("startup", "w")
  3. oTemp.writeLine("shell.run(\"" .. program .. "\")")
  4. oTemp.flush()
  5. oTemp.close()
  6.  
  7. letters = {}
  8.   letters[1] = "a"
  9.   letters[2] = "b"
  10.   letters[3] = "c"
  11.   letters[4] = "d"
  12.   letters[5] = "e"
  13.   letters[6] = "f"
  14.   letters[7] = "g"
  15.   letters[8] = "h"
  16.   letters[9] = "i"
  17.   letters[10] = "j"
  18.   letters[11] = "k"
  19.   letters[12] = "l"
  20.   letters[13] = "m"
  21.   letters[14] = "n"
  22.   letters[15] = "o"
  23.   letters[16] = "p"
  24.   letters[17] = "q"
  25.   letters[18] = "r"
  26.   letters[19] = "s"
  27.   letters[20] = "t"
  28.   letters[21] = "u"
  29.   letters[22] = "v"
  30.   letters[23] = "w"
  31.   letters[24] = "x"
  32.   letters[25] = "y"
  33.   letters[26] = "z"
  34.  
  35. function event()
  36.   events = {os.pullEventRaw()}
  37. end
  38.  
  39. function tick()
  40.   sleep(.01)
  41. end
  42.  
  43. print("LOL tihs code maks a bucnh of globel variabls lol haha so fune")
  44. sleep(1)
  45. while true do
  46.   events = {}
  47.   parallel.waitForAny(event, tick)
  48.   if events[1] == "terminate" then
  49.     print("No ya don't!")
  50.   end
  51.   lettersnum = math.random(2, 10)
  52.   var = ""
  53.   for i = 1, lettersnum do
  54.     char = letters[math.random(1, 26)]
  55.     var = var .. char
  56.   end
  57.   var = var .. "a = \"LOL\""
  58.   makevar = loadstring(var)
  59.   makevar()
  60.   print(var)
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement