Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code = "81652"
- while true do
- write("Pin ?: ")
- pass = read()
- os.pullEvent = os.pullEventRaw
- if pass == (code) then
- write("Authorised access")
- redstone.setOutput("top",true)
- sleep(5)
- redstone.setOutput("top",false)
- term.clear()
- term.setCursorPos(1,1)
- else
- write("access denied ")
- sleep(5)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement