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