Advertisement
Guest User

Untitled

a guest
Jul 11th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local term = require("term")
  2. local io = require("io")
  3. local event = require("event")
  4.  
  5. term.write("Password: ")
  6. while(password = io.read())
  7. do
  8.     event.shouldInterrupt = function() return false end
  9. end
  10.  
  11. if password == "potato" theb
  12.     print("Valid!")
  13. else
  14.     print("Invalid!")
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement