Advertisement
TheRealSam

Password

May 26th, 2019
118
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 == "Apple" then
  8. redstone.setOutput("left", true)
  9. sleep(2)
  10. redstone.setOutput("left", false)
  11. sleep(2)
  12. os.reboot()
  13. else
  14. print("Incorrect! Try again later.")
  15. sleep(1)
  16. print("Shutting Down")
  17. sleep(2)
  18. os.reboot()
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement