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