Advertisement
Guest User

startup

a guest
Apr 9th, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. redstone.setOutput ("left", false)
  4. attempts = 0
  5. correctpassword = "qwe"
  6. print("Attempts: "..attempts.."/3")
  7. write("ENTER AUTHORISATION CODE:")
  8. password = read("*")
  9.  
  10. if password == (correctpassword) then
  11. write("CODE VALID")
  12. redstone.setOutput("left", true)
  13. sleep(5)
  14. os.reboot()
  15.  
  16. elseif password == "onedelta" then
  17. write("Initiating Administrative Mode...")
  18. write("") -- code break
  19.  
  20. else
  21. attempts = attempts + 1
  22. print("Attempts: "..attempts.."/3")
  23. write("CODE INVALID! REBOOTING...")
  24.  
  25.  
  26. sleep(5)
  27. os.reboot()
  28.  
  29.  
  30.  
  31.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement