Guest User

a

a guest
Jul 28th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. while true do
  2. os.pullEvent =os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. write("Please Enter Password: ")
  6. input = read("*")
  7. if input == "Password" then
  8. redstone.setOutput("right", true)
  9. sleep(3)
  10. redstone.setOutput("right", false)
  11. sleep(1)
  12. os.reboot()
  13. else
  14. print("Incorrect! Try again later.")
  15. sleep(1)
  16. print("Shutting Down")
  17. sleep(1)
  18. os.reboot()
  19. end
  20. end
Add Comment
Please, Sign In to add comment