Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- password = "1234"
- print(os.getComputerLabel())
- write("Password: ")
- input = read("*")
- if input == password then
- print("Welcome")
- sleep(3)
- term.clear()
- term.setCursorPos(1,1)
- else
- print("Incorrect")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment