From fb390f402c3a0b7a7b3abf42043aae564f7f6397 Mon Sep 17 00:00:00 2001 From: min Date: Tue, 9 Jun 2026 18:59:54 +0300 Subject: [PATCH] =?UTF-8?q?fix(g13):=20=D1=82=D0=BE=D1=80=D0=B3=D0=BE?= =?UTF-8?q?=D0=B2=D0=B5=D1=86-=D1=84=D0=B8=D0=B3=D1=83=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20+=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=D0=BD=D0=B8=D0=B7=D1=83=20=D1=8D=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1) Торговец-NPC отсутствовал. Спавним фигурку из 3 частей: - Тело (синий куб) на (0, 2.0, 5) — за прилавком - Голова (бежевая сфера) на (0, 3.2, 5) - Шляпа (коричневый цилиндр) на (0, 3.8, 5) 2) Подсказки [E] плыли в центр экрана. Задал явную позицию: нижняя часть, по центру, с тёмной плашкой и тенью. Применил к g13_counter и g13_door. --- src/community/docsGamesBuildersLua.js | 36 ++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/src/community/docsGamesBuildersLua.js b/src/community/docsGamesBuildersLua.js index 602d11b..e2503c8 100644 --- a/src/community/docsGamesBuildersLua.js +++ b/src/community/docsGamesBuildersLua.js @@ -1059,6 +1059,30 @@ pickupSound.SoundId = "pickup"; pickupSound.Volume = 0.8 local winSound = Instance.new("Sound", workspace) winSound.SoundId = "win"; winSound.Volume = 1 +-- Спавним "торговца" — фигурка из 3 кубов за прилавком на (0, ?, 5) +-- Прилавок на x=0, z=3, sz=1.5 → задняя часть z=3.75. Ставим торговца на z=5. +-- Туловище +__rbxl_spawn_part({ + type = "cube", name = "ТорговецТело", + x = 0, y = 2.0, z = 5, + sx = 1.2, sy = 1.6, sz = 0.6, + color = "#3b82f6", anchored = true, canCollide = false, +}) +-- Голова +__rbxl_spawn_part({ + type = "sphere", name = "ТорговецГолова", + x = 0, y = 3.2, z = 5, + sx = 0.8, sy = 0.8, sz = 0.8, + color = "#fcd9b6", anchored = true, canCollide = false, +}) +-- Шляпа +__rbxl_spawn_part({ + type = "cylinder", name = "ТорговецШляпа", + x = 0, y = 3.8, z = 5, + sx = 1.0, sy = 0.3, sz = 1.0, + color = "#7a4a26", anchored = true, canCollide = false, +}) + -- Простой "инвентарь" в HUD: ключ local screenGui = Instance.new("ScreenGui", player.PlayerGui) local invLabel = Instance.new("TextLabel", screenGui) @@ -1128,8 +1152,10 @@ hintGui.Size = UDim2.new(5, 0, 1, 0) hintGui.StudsOffset = Vector3.new(0, 2.5, 0) hintGui.AlwaysOnTop = true local label = Instance.new("TextLabel", hintGui) -label.Size = UDim2.new(1, 0, 1, 0) -label.BackgroundTransparency = 1 +label.Size = UDim2.new(0, 320, 0, 50) +label.Position = UDim2.new(0.5, -160, 1, -120) -- внизу по центру +label.BackgroundColor3 = Color3.fromRGB(0, 0, 0) +label.BackgroundTransparency = 0.4 label.TextColor3 = Color3.fromRGB(255, 255, 255) label.TextStrokeTransparency = 0 label.TextScaled = true @@ -1169,8 +1195,10 @@ hintGui.Size = UDim2.new(4, 0, 1, 0) hintGui.StudsOffset = Vector3.new(0, 3.5, 0) hintGui.AlwaysOnTop = true local label = Instance.new("TextLabel", hintGui) -label.Size = UDim2.new(1, 0, 1, 0) -label.BackgroundTransparency = 1 +label.Size = UDim2.new(0, 280, 0, 50) +label.Position = UDim2.new(0.5, -140, 1, -120) -- внизу по центру +label.BackgroundColor3 = Color3.fromRGB(0, 0, 0) +label.BackgroundTransparency = 0.4 label.TextColor3 = Color3.fromRGB(255, 255, 255) label.TextStrokeTransparency = 0 label.TextScaled = true