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