Advertisement
Guest User

door

a guest
Jun 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. function pass1()
  2. term.clear()
  3. term.setCursorPos(1, 1)
  4. print("Please Enter Password:")
  5. input = read()
  6.  if input == "password" then
  7.   print("Password Accepted!")
  8.   pass2()
  9.  else
  10.   print("Password Denied!")
  11.  end
  12. end
  13.  
  14. function pass2()
  15. term,clear()
  16. --term.setCursorPos(1, 1)
  17. print("Please Enter 2nd Password:")
  18. input = read()
  19. if input == "stargate" then
  20. print("2nd Password Accepted!")
  21. else
  22. print("Password Denied!")
  23. print("Falling Back!")
  24. sleep(2)
  25. pass1()
  26. end
  27. end
  28.  
  29. while true do
  30. pass1()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement