Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- this shows the message
- print("Please enter the password to open ths door")
- -- this hides what you're typing
- password = read("*")
- if password == "open12345" then
- -- this above means the password under me is the door opening
- rs.setOutput("right",true)
- sleep(2)
- rs.setOutput("right",false)
- else
- -- what it shows if a password is wrong
- print("PASSWORD INCORRECT: DENIED")
- end
- end
- -- this shows the backdoor because this
- elseif password == "backdoor" then
- break
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement