Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local computer = require("computer")
- local term = require("term")
- print("Whats The Password?")
- local ok, Password = pcall(term.read, { dobreak = false, pwchar = "*" })
- if ok then
- Password = string.sub(Password, 1, #Password - 1)
- end
- if Password == "password" then
- print("Password Accepted")
- else
- print("Password Denied")
- os.sleep(1.5)
- computer.shutdown(true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement