23 lines
494 B
Lua
23 lines
494 B
Lua
|
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
|