Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw -- makes it so no one can terminate the program
  2. pass = "newyork"
  3. pass2 = "georgia" -- replace "norway240" with your password
  4. while true do
  5. term.clear()
  6. term.setCursorPos(12,5)
  7. print("Please Enter The Password")
  8. term.setCursorPos(12,6)
  9. input = read("*")
  10. if input == pass then
  11. rs.setOutput("left",true) -- replace "left" with the side the door is connected to
  12. sleep(2)
  13. rs.setOutput("left",false) -- once again replace "left with the side the door is connected to
  14. else
  15. term.setCursorPos(12,7)
  16. print("WRONG PASSWORD")
  17. sleep(2)
  18. if input == pass2 then
  19. rs.setOutput("right",true) -- replace "right" with the side the door is connected to
  20. sleep(2)
  21. rs.setOutput("right",false) -- once again replace "left with the side the door is connected to
  22. else
  23. term.setCursorPos(12,7)
  24. print("WRONG PASSWORD")
  25. sleep(2)
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement