Guest User

Untitled

a guest
Dec 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.17 KB | None | 0 0
  1. print ("Hello user,")
  2. print ("Welcome to Prownage Inc.")
  3. print (" ")
  4. print ("Please enter the password..")
  5.  
  6. local password
  7. password = read()
  8.  
  9. if (password == "pew") then
  10.    print("Password correct, Starting eye scan..") --10
  11.    redstone.setOutput("left", true)
  12.    redstone.setOutput("right", true)
  13.  
  14. else
  15. print ("Access denied")
  16. os.sleep(1)
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. error()
  20.  
  21. end
  22.  
  23. os.sleep(1)
  24. local eyecolor
  25.  
  26. print("please enter the color of your eyes..")
  27. eyecolor = read()
  28. print("Checking: [=     ] 5%")
  29. os.sleep(0,5)
  30. print("Checking: [==    ] 23%")
  31. os.sleep(0,5)
  32. print("Checking: [===   ] 45%")
  33. os.sleep(0,5)
  34. print("Checking: [====  ] 67%")
  35. os.sleep(0,5)
  36. print("Checking: [===== ] 90%")
  37. os.sleep(0,5)
  38. print("Checking: [======] 100%")
  39. print("Check complete")
  40.  
  41. if (eyecolor == "blue") then
  42. print("Access granted")
  43. os.sleep(1)
  44. redstone.setOutput("back", true)
  45. redstone.setOutput("left", false)
  46. redstone.setOutput("right", false)
  47.  
  48. else
  49. print("Access Denied")
  50. os.sleep(1)
  51. term.clear()
  52. term.setCursorPos(1,1)
  53. error()
  54.  
  55.  
  56. end
  57.  
  58. os.sleep(2)
  59. term.clear()
  60. term.setCursorPos(1, 1)
  61. os.sleep(3)
  62. redstone.setOutput("back", false)
  63. error()
Add Comment
Please, Sign In to add comment