Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local term = require("term")
- local io = require("io")
- local event = require("event")
- term.write("Password: ")
- event.shouldInterrupt = function() return false end
- while true do
- password = io.read()
- if password == "potato" then
- print("Valid!")
- else
- print("Invalid!")
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement