Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local input
- local pass = "1342z"
- function sleep(n)
- local t0 = os.clock()
- while os.clock() - t0 <= n do
- end
- end
- while true do
- print("Type the password:")
- input = read()
- if input==pass then
- shell.run("clear")
- print("!!! Access Granted !!!")
- redstone.setAnalogOutput("back", 15)
- sleep(5)
- redstone.setAnalogOutput("back", 0)
- shell.run("clear")
- else
- shell.run("clear")
- print("!!! Access Denied !!!")
- sleep(1)
- shell.run("clear")
- end
- end
Add Comment
Please, Sign In to add comment