LuaScripts/password.lua
2021-01-06 01:22:21 +03:00

22 lines
494 B
Lua

local 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