Create password.lua
This commit is contained in:
parent
b641281054
commit
a04ae664e7
1 changed files with 22 additions and 0 deletions
22
password.lua
Normal file
22
password.lua
Normal 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
|
Loading…
Reference in a new issue