shiryavsky

lua door lock 4 metro

Sep 22nd, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. os.pullEvent =os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. write("Entrance for subway employees only!")
  6. write("Please Enter Password: ")
  7. input = read("*")
  8. if input == "metro" then
  9. redstone.setOutput("left", true)
  10. sleep(3)
  11. redstone.setOutput("left", false)
  12. sleep(1)
  13. os.reboot()
  14. else
  15. print("Incorrect! Try again later.")
  16. sleep(1)
  17. print("Shutting Down")
  18. sleep(1)
  19. os.reboot()
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment