This commit is contained in:
heyshawtyy committed 2026-11-09 22:37:44 +05:00
1 parent fd5e92d0f5
commit 9f898c04dd
415 files changed
+6241617 -633464

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
-- Пересборка скамеек лобби по свежим моделям (node tools/lobby-benches.js <out.lua>, выполнить в Studio, Ctrl+S).
-- Каждая скамейка LobbyFix3.LobbyBench_N заменяется новой на том же месте, сиденьем к фонтану (−Z модели к центру),
-- спинкой наружу. Невидимое Seat ставится на доски, лицом к фонтану. Отменяет разворот из lobby-fix6.
local map = workspace.FishingMap
local SCALE = 1.2
local holder = map:FindFirstChild("LobbyFix3")
assert(holder, "нет FishingMap.LobbyFix3")
local n = 0
for _, old in ipairs(holder:GetChildren()) do
local i = old:IsA("Model") and tonumber(old.Name:match("^LobbyBench_(%d+)$"))
if i then
local p = old:GetPivot().Position
local seat = old:FindFirstChildWhichIsA("Seat")
if seat then
seat.Parent = nil
end
local at = Vector3.new(p.X, p.Y, p.Z)
local cf = CFrame.lookAt(at, Vector3.new(0, at.Y, 0)) -- сиденьем к фонтану
old:Destroy()
local m = (i % 2 == 1 and BUILD.bench or BUILD.bench_flowers)(holder)
m.Name = "LobbyBench_" .. i
m:ScaleTo(SCALE)
m:PivotTo(cf)
for _, d in ipairs(m:GetDescendants()) do
if d:IsA("BasePart") then
d.Anchored = true
end
end
if seat then
seat.CFrame = cf * CFrame.new(0, 1.55 * SCALE, -0.27 * SCALE)
seat.Parent = m
end
n += 1
end
end
return "скамеек пересобрано: " .. n