Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pass = "Frogz"
- term.write("Enter the password: ")
- local try = read()
- function wait(n)
- os.sleep(n)
- end
- while try ~= pass do
- term.write("Entor the password: ")
- try = read()
- end
- if try == pass then
- redstone.setOutput("back", true)
- wait(3)
- redstone.setOutput("back", false)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement