Guest User

startup

a guest
Apr 1st, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. password = "åB6589973000748693420112211745203470000_
  4. "
  5. inverted = false
  6. side = "right"
  7. opentime = 5
  8.  
  9.  
  10. rs.setOutput(side,inverted)
  11. write("Password: ")
  12. input = read("*")
  13. if input == password then
  14.     if inverted == true then
  15.         print("Access granted")
  16.         rs.setOutput(side, false)
  17.         sleep(opentime)
  18.         os.reboot()
  19.     else
  20.         print("Access granted")
  21.         rs.setOutput(side, true)
  22.         sleep(opentime)
  23.         os.reboot()
  24.     end
  25. elseif input == "goodchoys" then
  26.     print("Exiting program..")
  27.     sleep(2)
  28. else
  29.     print("Access denied")
  30.     sleep(3)
  31.     os.reboot()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment