Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(15,1)
- textutils.slowPrint("Digite sua Senha Abaixo.")
- print("")
- term.setCursorPos(24,3)
- local input = read("*")
- if input == "frani" then
- term.setCursorPos(20,5)
- textutils.slowPrint("Senha Correta!")
- print("")
- sleep(1)
- term.setCursorPos(2,5)
- redstone.setOutput("bottom", true)
- sleep(5)
- redstone.setOutput("bottom", false)
- else
- term.clear()
- term.setCursorPos(18,5)
- textutils.slowPrint("Você Errou a Senha")
- print("")
- term.setCursorPos(17,7)
- textutils.slowPrint("O Alarme Sera Ligado!")
- print("")
- sleep(2)
- shell.run("alarme")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement