Advertisement
luigicrafter

Password door Lock

Dec 18th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. print("Password Security System")
  5. write("write Password here:")
  6. input = read()
  7.  
  8. password = "YOUR_PASSWORD_HERE"
  9.  
  10. if input == password then
  11. print("Password right!")
  12. rs.setOutput("right", true)
  13. sleep(3)
  14. rs.setOutput("right", false)
  15. os.reboot()
  16. else
  17. print("Password wrong! HAHA!!!")
  18. sleep(3)
  19. os.reboot()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement