Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local password = "<password>" -- Change this to what you want your password to be.
- local oldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Password:")
- local input = read("*")
- if input == password then
- print("Welcome!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- break
- else
- print("Password incorect!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print("Goodbye!")
- sleep(2)
- os.shutdown()
- end
- end
- os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement