LuaScripts/password.lua

23 lines
494 B
Lua
Raw Normal View History

2021-01-05 22:22:21 +00:00
local term = require("term")
2021-01-05 22:20:56 +00:00
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