Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local password = "banana"
- while true do
- term.clear() -- Clears the screen
- term.setCursorPos(1,1) -- Fixes the cursor position
- print("Welcome to the Reis Bros LDA. 's HQ ! We will need to authenticate you.")
- write("Password: ")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct. Enjoy your stay!")
- print("To open the door, run the file 'open', reboot to lock.")
- break
- else
- print("Password incorrect!")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement