Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "left"
- local password = "lab7539"
- local opentime = 3
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Opening...")
- rs.setOutput(side,true)
- sleep(opentime)
- rs.setOutput(side,false)
- else
- print("Incorrect... Returning...")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement