Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local password = "enteryourpassword"
- local door = "right"
- local open = 3
- shell.run( "clear" )
- os.pullEvent = os.pullEventRaw
- print("")
- write("Password:")
- input = read("*")
- if input == password then
- print("Access granted")
- rs.setOutput(side,true)
- sleep(open)
- rs.Output(side,false)
- else
- print("Access denied")
- sleep(2)
- end
- os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement