Advertisement
Guest User

lock

a guest
Aug 4th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. x = 1
  3. while true do
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. write("Password: ")
  7. local input = read("*")
  8. if input == "pillow" then
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("Password Correct")
  12. rs.setOutput("right",false)
  13. sleep(5)
  14. rs.setOutput("right",true)
  15. else if input == "debug" then
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. print("Entering Console Development Mode")
  19. error()
  20. else if x == 4 then
  21. print("Password Entered Incorrect 3 Times")
  22. print("Locked For 1 Minute")
  23. sleep(60)
  24. x = 1
  25. else
  26. print("Password Incorrect")
  27. x = x + 1
  28. sleep(2)
  29. end
  30. end
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement