Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- password = "password"
- while true do
- term.clear()
- term.setCursorPos(12,5)
- print("Enter password")
- term.setCursorPos(12,6)
- input = read("*")
- if input == password then
- rs.setOutput("left",true)
- sleep(2)
- rs.setOutput("left",false)
- else
- term.setCursorPos(12,7)
- print("WRONG PASSWORD")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment