Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local password = "timhat3nippel"
- local masterpw = "ichbinderüberboss"
- local side = "right"
- local opentime = 5
- local run = 1
- os.pullEvent = os.pullEventRaw
- while run == 1 do
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Passwort richtig!")
- rs.setOutput(side,true)
- sleep(opentime)
- rs.setOutput(side,false)
- elseif input == masterpw then
- run = 0
- else
- print("Passwort falsch!")
- sleep(2)
- end
- end
Add Comment
Please, Sign In to add comment