feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39

Merged
min merged 215 commits from feat/lua-50-games-bundle into main 2026-06-09 21:59:25 +00:00
Showing only changes of commit fb390f402c - Show all commits

View File

@ -1059,6 +1059,30 @@ pickupSound.SoundId = "pickup"; pickupSound.Volume = 0.8
local winSound = Instance.new("Sound", workspace) local winSound = Instance.new("Sound", workspace)
winSound.SoundId = "win"; winSound.Volume = 1 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: ключ -- Простой "инвентарь" в HUD: ключ
local screenGui = Instance.new("ScreenGui", player.PlayerGui) local screenGui = Instance.new("ScreenGui", player.PlayerGui)
local invLabel = Instance.new("TextLabel", screenGui) 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.StudsOffset = Vector3.new(0, 2.5, 0)
hintGui.AlwaysOnTop = true hintGui.AlwaysOnTop = true
local label = Instance.new("TextLabel", hintGui) local label = Instance.new("TextLabel", hintGui)
label.Size = UDim2.new(1, 0, 1, 0) label.Size = UDim2.new(0, 320, 0, 50)
label.BackgroundTransparency = 1 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.TextColor3 = Color3.fromRGB(255, 255, 255)
label.TextStrokeTransparency = 0 label.TextStrokeTransparency = 0
label.TextScaled = true label.TextScaled = true
@ -1169,8 +1195,10 @@ hintGui.Size = UDim2.new(4, 0, 1, 0)
hintGui.StudsOffset = Vector3.new(0, 3.5, 0) hintGui.StudsOffset = Vector3.new(0, 3.5, 0)
hintGui.AlwaysOnTop = true hintGui.AlwaysOnTop = true
local label = Instance.new("TextLabel", hintGui) local label = Instance.new("TextLabel", hintGui)
label.Size = UDim2.new(1, 0, 1, 0) label.Size = UDim2.new(0, 280, 0, 50)
label.BackgroundTransparency = 1 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.TextColor3 = Color3.fromRGB(255, 255, 255)
label.TextStrokeTransparency = 0 label.TextStrokeTransparency = 0
label.TextScaled = true label.TextScaled = true