Scorpionfien

Personal Lock

Dec 19th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. -----------------------------
  2. --Created by: Scorpionfien --
  3. -----------------------------
  4. os.pullEvent = os.pullEventRaw
  5. local password = "Sakura"
  6. local admin = "1997ChevY"
  7. local open = 3
  8.  
  9. while true do
  10.  
  11. term.clear()
  12. term.setCursorPos(5,5)
  13. print("Password Please: ")
  14. term.setCursorPos(6,6)
  15. pass = read("*")
  16.  
  17. if pass == password then
  18. term.clear()
  19. term.setCursorPos(5,5)
  20. print("Welcome")
  21. rs.setOutput("right", true)
  22. sleep(open)
  23. rs.setOutput("right", false)
  24.  
  25. elseif pass == admin then
  26. term.clear()
  27. term.setCursorPos(5,5)
  28. print("Admin Accepted")
  29. sleep(open)
  30. term.clear()
  31. term.setCursorPos(1,1)
  32. shell.run("shell")
  33.  
  34. else
  35. term.clear()
  36. term.setCursorPos(5,5)
  37. print("Incorrect Password")
  38. sleep(open)
  39. end
  40.  
  41. end
Advertisement
Add Comment
Please, Sign In to add comment