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