Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Immetti la password:")
- input = read("*")
- if input == "password" then
- print ("Accesso garantito. Hai 6 secondi corri.")
- redstone.setOutput ("back", true )
- sleep(6)
- redstone.setOutput ("back", false )
- os.shutdown()
- else
- print ("Accesso Negato.")
- redstone.setOutput ("right", true )
- sleep(12)
- redstone.setOutput ("right", false )
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment