Advertisement
Guest User

door

a guest
Nov 25th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. while true do
  2. -- this shows the message
  3. print("Please enter the password to open ths door")
  4. -- this hides what you're typing
  5. password = read("*")
  6. if password == "open12345" then
  7. -- this above means the password under me is the door opening
  8. rs.setOutput("right",true)
  9. sleep(2)
  10. rs.setOutput("right",false)
  11. else
  12. -- what it shows if a password is wrong
  13. print("PASSWORD INCORRECT: DENIED")
  14. end
  15. end
  16. -- this shows the backdoor because this
  17. elseif password == "backdoor" then
  18. break
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement