Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- print("Simple Password Door v. 1.0")
- write("Enter password: ")
- input = read()
- password = "Tekkit"
- if input == password then—If the input is equal to the password then...
- print("Password was correct!")
- rs.setOutput("left", true)
- sleep(3)
- rs.setOutput("left", false)
- else—If input isn't equal to password then...
- print("Password was incorrect")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement