Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local oldPull = os.pullEvent;
  2. os.pullEvent = os.pullEventRaw;
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. correctpass = "Open"
  6. write("Enter Password: ")
  7. pass = read("paul")
  8. if pass == (correctpass) then
  9. write("Opening Door")
  10. redstone.setOutput("back", true )
  11. sleep(3)
  12. redstone.setOutput("back", false )
  13. os.shutdown()
  14. end
  15. write("Incorrect Password")
  16. sleep(3)
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. textutils.slowPrint("Terminal Locking Down in 3... 2... 1...")
  20. sleep(.5)
  21. os.shutdown()
  22. os.pullEvent = oldPull;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement