Advertisement
AlessandroCH

Password | Vault Tec Computer Craft

Aug 23rd, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. term.setTextColor(colors.lime)
  5. sleep(0.5)
  6. textutils.slowPrint("Vault-Tec 1000 - Vault 58")
  7. print(" ")
  8. sleep(0.5)
  9. textutils.slowPrint("Password Needed!")
  10. sleep(0.5)
  11. textutils.slowPrint("Password:")
  12. sleep(0.5)
  13. term.setCursorPos(10,4)
  14. local a = read("*")
  15. if a == "Vault" then
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. sleep(0.5)
  19. textutils.slowPrint("Password Accepted!")
  20. sleep(2)
  21. shell.run("System")
  22. else
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. sleep(0.5)
  26. textutils.slowPrint("Password Wrong!")
  27. sleep(3)
  28. shell.run("Password")
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement