local score = 15
if score >= 10 then
print("Уровень пройден!")
endlocal hasKey = true
local doorClosed = true
if hasKey and doorClosed then
print("Дверь открывается!")
endlocal vip = false
local level = 20
if vip or level >= 10 then
print("Доступ разрешён")
endlocal alive = false
if not alive then
print("Игрок возрождается")
endlocal level = 12
local hasSword = true
local banned = false
if level >= 10 and hasSword and not banned then
print("Игрок может войти в арену")
end