Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local seite = "left"
- local password = "ghouse"
- local door = 3
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ")
- local input = read ("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Password is correct!")
- rs.setOutput(seite,true)
- sleep(door)
- rs.setOutput(seite,false)
- else
- print("Password is incorrect! Idiot! :)")
- sleep(2)
- os.shutdown()
- end
- end
Add Comment
Please, Sign In to add comment