Advertisement
Guest User

Untitled

a guest
Aug 16th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Hampton Door Security 1.0")
  5. print("UserName: HeroHitt")
  6. write("Password: ")
  7. function pass()
  8. t = io.read()
  9. if t == "letusin" then
  10. print ("Access Granted.")
  11. redstone.setOutput("right", true)
  12. sleep(1)
  13. redstone.setOutput("right", false)
  14. term.clear()
  15. term.setCursorPos(1,1)
  16. print("Hampton Computer Security 1.0")
  17. print("UserName: HeroHitt")
  18. write("Password: ")
  19. pass()
  20. else
  21. print ("Incorrect Login Details.")
  22. sleep(1)
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. print("Hampton Computer Security 1.0")
  26. print("UserName: HeroHitt")
  27. write("Password: ")
  28. pass()
  29. end
  30. end
  31. pass()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement