local health = 50
if health > 0 then
print("Игрок жив")
endlocal health = 0
if health > 0 then
print("Жив")
else
print("Проиграл")
endlocal score = 100
if score > 200 then
print("Отлично")
elseif score > 50 then
print("Нормально")
else
print("Слабо")
endfor i = 1, 5 do
print(i)
endlocal i = 1
while i <= 5 do
print(i)
i = i + 1
endwhile true do
print("Работает")
endwhile true do
print("Работает")
wait(1)
endscript.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
print("Игрок коснулся объекта")
end
end)for i = 1, 3 do
if i == 2 then
print("Это два!")
end
end