Advertisement
Guest User

startup

a guest
Oct 19th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. password = "1775"
  5. mon = peripheral.wrap("top")
  6. mon.clear()
  7. mon.setCursorPos(6,3)
  8. mon.setTextScale(.5)
  9. mon.write("Fish's")
  10. mon.setCursorPos(1,4)
  11. mon.write("Computer Status")
  12. mon.setCursorPos(8,5)
  13. mon.write("=")
  14. mon.setCursorPos(6,6)
  15. mon.write("Locked")
  16. print("Enter Password Below")
  17. function trolol()
  18. write("Password: ")
  19. aba = read("*")
  20. if aba == password then
  21.   shell.run("clear")
  22.   textutils.slowPrint("Access Granted.")
  23.   textutils.slowPrint("Computer unlocked.")
  24.   sleep(1)
  25.   shell.run("clear")
  26.   print("Hello F15H!")
  27.   shell.run("time")
  28.   mon.setCursorPos(5,6)
  29.   mon.write("Unlocked")
  30. else
  31. shell.run("clear")
  32.   print("Incorrect password. Please try again.")
  33.   trolol()
  34. end
  35. end
  36. trolol()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement