Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. local term = require("term")
  2. local password = "password"
  3.  
  4. term.clear()
  5. term.write("Password: ")
  6. local p = term.read()
  7. if p == password then
  8. print("Correct!"
  9. else
  10. print("Incorrect!")
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement