From a04ae664e7d5b7fc9bfddfb6ccf94fd0dfc03f9e Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Wed, 6 Jan 2021 01:20:56 +0300 Subject: [PATCH] Create password.lua --- password.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 password.lua diff --git a/password.lua b/password.lua new file mode 100644 index 0000000..1e3ae16 --- /dev/null +++ b/password.lua @@ -0,0 +1,22 @@ +loacl term = require("term") +local note = require("note") +local password = "ввести сюда пароль", try +term.clear() + +while true do + io.write("введите пароль: ") + err, try = pcall(io.read) + if not err then + print("хуй тебе") + note.play(60, 0.5) + elseif try == password then + term.clear() + print("welCUM") + note.play(95, 0.1) + note.play(95, 0.1) + break + else + print("неверный пароль!") + note.play(60, 0.3) + end +end