This commit is contained in:
Leshyi committed 2026-11-03 13:45:36 +03:00
1 parent 9682ed0987
commit eade0cd2ae
10 files changed
+1532033 -166651

No files matched your search

+61
View File
@@ -0,0 +1,61 @@
-- Apply after REBUILD_LANDSCAPE.lua in Studio Edit mode.
local V,CF=Vector3.new,CFrame.new
local map=workspace.World1Map
local folder=map.LandscapeDetails
local cabin=map.BigCabin;cabin:ScaleTo(1.65)
local c,s=cabin:GetBoundingBox()
cabin:PivotTo(cabin:GetPivot()+V(-80-c.X,10-(c.Y-s.Y/2),1450-c.Z))
local old=folder:FindFirstChild('CabinRamp');if old then old:Destroy() end
local ramp=Instance.new('Model');ramp.Name='CabinRamp';ramp.Parent=folder
local function part(name,size,cf,color,mat,parent)
local p=Instance.new('Part');p.Name=name;p.Anchored=true;p.Size=size;p.CFrame=cf;p.Color=color;p.Material=mat or Enum.Material.Wood;p.TopSurface=Enum.SurfaceType.Smooth;p.BottomSurface=Enum.SurfaceType.Smooth;p.Parent=parent or ramp;return p
end
local function beam(a,b,w,color,parent)
return part('Rail',V(w,w,(a-b).Magnitude),CFrame.lookAt((a+b)/2,b),color,Enum.Material.Wood,parent)
end
local wood=Color3.fromRGB(137,89,48)
local a,b=V(-68.1,12.15,1457.1),V(-68.1,4.3,1479)
local cf=CFrame.lookAt((a+b)/2,b)
part('WalkableRamp',V(6.5,0.55,(b-a).Magnitude+0.5),cf,wood,Enum.Material.WoodPlanks)
for j=0,16 do
local p=a:Lerp(b,j/16)
local strip=part('CrossPlank',V(6.55,0.12,0.10),CF(p+V(0,0.33,0))*cf.Rotation,Color3.fromRGB(103,65,37))
strip.CanCollide=false
end
for _,side in {-1,1} do
local prev
for j=0,4 do
local p=a:Lerp(b,j/4)+V(side*3,0,0)
part('RampPost',V(0.45,3.5,0.45),CF(p+V(0,1.5,0)),wood)
if prev then beam(prev+V(0,2.9,0),p+V(0,2.9,0),0.32,wood) end
prev=p
end
end
-- Warm lamps at the cabin and along the uphill trail.
for _,p in {V(-65,12,1457),V(-88,7,1530),V(-104,20,1464),V(-93,37,1415),V(-46,60,1385)} do
part('LanternPost',V(0.6,6,0.6),CF(p+V(0,3,0)),wood,nil,folder)
local lamp=part('AmberLantern',V(1.1,1.6,1.1),CF(p+V(0,6,0)),Color3.fromRGB(255,199,99),Enum.Material.Neon,folder)
part('LanternCap',V(1.5,0.3,1.5),CF(p+V(0,6.95,0)),Color3.fromRGB(64,57,41),Enum.Material.Metal,folder)
local light=Instance.new('PointLight');light.Color=lamp.Color;light.Brightness=1.3;light.Range=13;light.Parent=lamp
end
-- Broaden the cascade while retaining its original animation and particles.
local sheet=map.Waterfall:GetChildren()[1]
if not sheet:GetAttribute('LandscapeWidened') then
sheet.Size=V(19,sheet.Size.Y,sheet.Size.Z)
for _,a in sheet:GetChildren() do if a:IsA('Attachment') then a.Position=V(a.Position.X*1.9,a.Position.Y,a.Position.Z) end end
sheet:SetAttribute('LandscapeWidened',true)
end
-- The small waterside cabin sits on the opposite shore, below the lookout.
local small=map.SmallCabin;local sc,ss=small:GetBoundingBox()
small:PivotTo(small:GetPivot()+V(-10-sc.X,5.05-(sc.Y-ss.Y/2),1424-sc.Z))
local bridge=map.Bridge
local low=math.huge
for _,p in bridge:GetDescendants() do
if p:IsA('BasePart') and math.abs(p.Size.Y-0.5)<0.01 then low=math.min(low,p.Position.Y+0.25) end
end
if low<math.huge then bridge:PivotTo(bridge:GetPivot()+V(0,39.1-low,0)) end
local generated=workspace:FindFirstChild('HouseWithRamp')
if generated then generated.Parent=game.ServerStorage end
workspace.CurrentCamera.CFrame=CFrame.lookAt(V(22,14,1570),V(-22,25,1443))
return {rampSlopeDegrees=math.deg(math.atan((a.Y-b.Y)/(a.Z-b.Z)))*-1}