From ba648de09cabf8c990720bd17e1d681455318ed2 Mon Sep 17 00:00:00 2001 From: min Date: Tue, 9 Jun 2026 13:15:11 +0300 Subject: [PATCH] =?UTF-8?q?debug(lua-games):=20=D0=BF=D1=80=D0=B8=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=20print=20=D0=B2=20g2=5Fmain=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=84=D0=B5=D1=82=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/community/docsGamesBuildersLua.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/community/docsGamesBuildersLua.js b/src/community/docsGamesBuildersLua.js index 789cb96..0253683 100644 --- a/src/community/docsGamesBuildersLua.js +++ b/src/community/docsGamesBuildersLua.js @@ -171,8 +171,18 @@ finishEvent.Event:Connect(function() winSound:Play() __rbxl_show_text("Победа! Ты дошёл до финиша!", 5) -- Конфетти над игроком (паритет с JS game.scene.spawnParticles) + print("[g2] before pos call") local pos = __rbxl_player_pos() - __rbxl_spawn_particles("confetti", pos.x, pos.y + 3, pos.z, 3, 3) + print("[g2] pos=", tostring(pos), "type=", type(pos)) + if pos then + print("[g2] pos.x=", tostring(pos.x), "pos.y=", tostring(pos.y)) + end + local px = (pos and pos.x) or 0 + local py = (pos and pos.y) or 6 + local pz = (pos and pos.z) or 33 + print("[g2] spawning particles at", px, py + 3, pz) + __rbxl_spawn_particles("confetti", px, py + 3, pz, 3, 3) + print("[g2] particles call returned") end)`, g2_finish: `-- === Скрипт финиш-зоны (Lua) === -- Висит на невидимой зоне над зелёной площадкой.