Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "right"
- local password = "password"
- local opentime = 5
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Password:")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Correct Password")
- redstone.setOutput(side, true)
- sleep(opentime)
- redstone.setOutput(side, false)
- else
- print("Password Incorrect!")
- sleep(3)
- end
- end
Add Comment
Please, Sign In to add comment