Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. print("Simple Password Door v. 1.0")
  5. write("Enter password: ")
  6. input = read()
  7.  
  8. password = "Tekkit"
  9.  
  10. if input == password then—If the input is equal to the password then...
  11. print("Password was correct!")
  12. rs.setOutput("left", true)
  13. sleep(3)
  14. rs.setOutput("left", false)
  15. else—If input isn't equal to password then...
  16. print("Password was incorrect")
  17. sleep(3)
  18. os.reboot()
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement