Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sEvent, param
- local password
- local numa=3
- local numb=0
- while true do
- while numb==0 do
- while numa>0 do
- write("Enter password : ")
- password=read("*")
- if password=="a" then --v5b13nw
- redstone.setOutput("bottom", true)
- print("Correct password")
- print("Door open for 5 seconds")
- os.sleep(5)
- redstone.setOutput("bottom", false)
- shell.run("clear")
- numa=3
- else
- print("Access denied")
- numa=numa-1
- print("Essais restant : "..numa)
- end
- end
- print("Too many error")
- print("Intrusion detected")
- print("System lock")
- print("Good luck to unlock it ^^")
- numb=1
- end
- os.pullEvent()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement