Advertisement
LegoStax

Password Protected Door

May 29th, 2014
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. -- Password Protected Door by LegoStax
  2. os.pullEvent = os.pullEventRaw
  3. shell.run("clear")
  4. local cpass = "1234"
  5. write "Enter Password: "
  6. local pass = read("*")
  7. if pass == cpass then
  8.     print("Access Granted")
  9.     rs.setOutput("top", true)
  10.     sleep(3)
  11.     rs.setOutput("top", false)
  12.     os.shutdown()
  13. else
  14.     print("Access Denied")
  15.     sleep(1)
  16.     os.shutdown()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement