Advertisement
PSquishyP

Lock Code 0.1 (Un-Optimized)

Oct 7th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. os.pullEventOld = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3.  
  4. while true do
  5.  term.clear()
  6.  term.setCursorPos(1, 1)
  7.  print("NOAH LOCKING SYSTEMS")
  8.  print("Please Enter Password")
  9.  term.setCursorPos(1,4)
  10.  input = read("*")
  11.  if input == "password" then
  12.  term.clear()
  13.  term.setCursorPos(1,1)
  14.  print("Password Accepted. Closing in 3...")
  15.   redstone.setOutput("back", true)
  16.   sleep(1)
  17.   term.clear()
  18.   term.setCursorPos(1,1)
  19.  print("Password Accepted. Closing in 2...")
  20.   sleep(1)
  21.   term.clear()
  22.   term.setCursorPos(1,1)
  23.  print("Password Accepted. Closing in 1...")
  24.   sleep(1)
  25.   redstone.setOutput("back", false)
  26.   elseif input == "root123" then
  27.  term.clear()
  28.  term.setCursorPos(1,1)
  29.  print("ROOT MODE ENABLED")
  30.   sleep(1)
  31.   term.clear()
  32.   term.setCursorPos(1,1)
  33.  print("BOOTING SHELL.")
  34.   sleep(.3)
  35.   term.clear()
  36.   term.setCursorPos(1,1)
  37.  print("BOOTING SHELL..")
  38.   sleep(.3)
  39.   term.clear()
  40.   term.setCursorPos(1,1)
  41.   print("BOOTING SHELL...")
  42.   sleep(.3)
  43.   term.clear()
  44.   term.setCursorPos(1,1)
  45.   shell.run("shell")
  46. else
  47. term.clear()
  48. term.setCursorPos(1,1)
  49. print("Incorrect Password")
  50. sleep(2)
  51. end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement