Create password.lua

This commit is contained in:
erius0 2021-01-06 01:20:56 +03:00 committed by GitHub
parent b641281054
commit a04ae664e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
password.lua Normal file
View file

@ -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