Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw -- makes it so no one can terminate the program
- pass = "newyork"
- pass2 = "georgia" -- replace "norway240" with your password
- while true do
- term.clear()
- term.setCursorPos(12,5)
- print("Please Enter The Password")
- term.setCursorPos(12,6)
- input = read("*")
- if input == pass then
- rs.setOutput("left",true) -- replace "left" with the side the door is connected to
- sleep(2)
- rs.setOutput("left",false) -- once again replace "left with the side the door is connected to
- else
- term.setCursorPos(12,7)
- print("WRONG PASSWORD")
- sleep(2)
- if input == pass2 then
- rs.setOutput("right",true) -- replace "right" with the side the door is connected to
- sleep(2)
- rs.setOutput("right",false) -- once again replace "left with the side the door is connected to
- else
- term.setCursorPos(12,7)
- print("WRONG PASSWORD")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement