Advertisement
123pandaman

Lock

Jul 11th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3.  
  4. local pass
  5.  
  6. local realPass = "mango"
  7. local adminPass = "DoctorWho"
  8.  
  9. shell.run("clear")
  10.  
  11. print("Enter Passcode:")
  12. pass = read("*")
  13.  
  14.  
  15. if(pass == realPass) then
  16. print("Password Correct")
  17. redstone.setOutput("bottom", true)
  18. sleep(1.5)
  19. redstone.setOutput("bottom", false)
  20. os.reboot()
  21. elseif(pass == adminPass) then
  22.  
  23. else
  24. print("Password Incorrect")
  25. os.reboot()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement