local health = 100
if health > 0 then
print("Игрок жив")
endlocal coins = 10
if coins >= 10 then
print("Можно купить предмет")
endlocal health = 0
if health > 0 then
print("Жив")
else
print("Проиграл")
endlocal score = 50
if score > 100 then
print("Отлично")
elseif score > 20 then
print("Нормально")
else
print("Слабо")
endlocal isOpen = true
if isOpen then
print("Дверь открыта")
endscript.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
print("Игрок коснулся объекта")
end
end)