Advertisement
djshadowxm81

Untitled

Mar 4th, 2015
222
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)os.pullEvent = os.pullEventRaw
  3.  
  4. password = "2521"
  5. masterpassword = "2111"
  6.  
  7. print("Mount Weather Security Terminal")
  8. write "Please Authenticate: "
  9. local input = read("*")
  10.  
  11. if input == (password) then
  12. print("Password Accepted - Access Granted")
  13. redstone.setOutput("back", true)
  14. sleep(5)
  15. os.shutdown()
  16.  
  17. elseif input == (masterpassword) then
  18. print("Welcome, Alex. Your terminal is unlocked.")
  19. sleep(2)
  20. print("Please save after making your changes.")
  21.  
  22. else
  23. print("Password Incorrect - Rebooting Now.")
  24. sleep(2)
  25. os.shutdown()
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement