local MS = game:GetService("MaterialService") local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") if not ok then return warn(roots) end local tmp = Instance.new("Folder") for _, r in ipairs(roots) do r.Parent = tmp end for _, d in ipairs(tmp:GetDescendants()) do if d:IsA("MaterialVariant") then d.Parent = MS end end tmp:Destroy() local model = Instance.new("Model") model.Name = "GalleonShip" model.Parent = workspace local variants = { ["Black"] = "2022 Weld", ["Bright yellow"] = "2022 Stud", ["Institutional white"] = "2022 Glue", ["Nougat"] = "2022 Small Stud", ["Pine Cone"] = "2022 Small Stud", ["Reddish brown"] = "2022 Small Stud", ["Toothpaste"] = "2022 Stud", } if next(needed) then local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") if not ok then warn(roots) else local tmp = Instance.new("Folder") for _, r in ipairs(roots) do r.Parent = tmp end for _, d in ipairs(tmp:GetDescendants()) do if d:IsA("MaterialVariant") and needed[d.Name] then d.Parent = MS end end tmp:Destroy() end end end do local p = Instance.new("Part") p.Name = "HullBottom" p.Size = Vector3.new(12, 4, 30) p.CFrame = CFrame.new(0, 2, 0) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "HullMid" p.Size = Vector3.new(14, 2, 32) p.CFrame = CFrame.new(0, 5, 0) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "HullTop" p.Size = Vector3.new(15, 2, 34) p.CFrame = CFrame.new(0, 7, 0) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "BowMid" p.Size = Vector3.new(10, 2, 4) p.CFrame = CFrame.new(0, 5, -18) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "BowTop" p.Size = Vector3.new(11, 2, 4) p.CFrame = CFrame.new(0, 7, -19) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "BowTip" p.Size = Vector3.new(6, 2, 4) p.CFrame = CFrame.new(0, 8, -22) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "BowspritBase" p.Size = Vector3.new(2, 2, 6) p.CFrame = CFrame.new(0, 9, -25) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "SternBase" p.Size = Vector3.new(14, 2, 8) p.CFrame = CFrame.new(0, 9, 15) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "SternMid" p.Size = Vector3.new(12, 2, 6) p.CFrame = CFrame.new(0, 11, 16) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "SternTop" p.Size = Vector3.new(10, 2, 4) p.CFrame = CFrame.new(0, 13, 17) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "MainDeck" p.Size = Vector3.new(13, 0.4, 20) p.CFrame = CFrame.new(0, 8.16, -5) p.BrickColor = BrickColor.new("Nougat") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "QuarterDeck" p.Size = Vector3.new(13, 0.4, 10) p.CFrame = CFrame.new(0, 10.16, 13) p.BrickColor = BrickColor.new("Nougat") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "PoopDeck" p.Size = Vector3.new(9, 0.4, 4) p.CFrame = CFrame.new(0, 14.2, 17) p.BrickColor = BrickColor.new("Nougat") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "ForeDeck" p.Size = Vector3.new(9, 0.4, 6) p.CFrame = CFrame.new(0, 9.2, -18) p.BrickColor = BrickColor.new("Nougat") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "TrimLower" p.Size = Vector3.new(14.2, 0.4, 32.2) p.CFrame = CFrame.new(0, 4, 0) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "TrimUpper" p.Size = Vector3.new(15.2, 0.4, 34.2) p.CFrame = CFrame.new(0, 6, 0) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "TrimStern1" p.Size = Vector3.new(14.2, 0.4, 8.2) p.CFrame = CFrame.new(0, 10, 16) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "TrimStern2" p.Size = Vector3.new(12.2, 0.4, 6.2) p.CFrame = CFrame.new(0, 12, 17) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryWindow1" p.Size = Vector3.new(2, 1.5, 0.2) p.CFrame = CFrame.new(-3, 10, 19.1) p.BrickColor = BrickColor.new("Toothpaste") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryWindow2" p.Size = Vector3.new(2, 1.5, 0.2) p.CFrame = CFrame.new(0, 10, 19.1) p.BrickColor = BrickColor.new("Toothpaste") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryWindow3" p.Size = Vector3.new(2, 1.5, 0.2) p.CFrame = CFrame.new(3, 10, 19.1) p.BrickColor = BrickColor.new("Toothpaste") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryTrim1" p.Size = Vector3.new(12, 0.4, 0.2) p.CFrame = CFrame.new(0, 11, 19.2) p.BrickColor = BrickColor.new("Bright yellow") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryWindow4" p.Size = Vector3.new(1.5, 1.5, 0.2) p.CFrame = CFrame.new(-2, 12, 19.6) p.BrickColor = BrickColor.new("Toothpaste") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryWindow5" p.Size = Vector3.new(1.5, 1.5, 0.2) p.CFrame = CFrame.new(2, 12, 19.6) p.BrickColor = BrickColor.new("Toothpaste") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "GalleryTrim2" p.Size = Vector3.new(10, 0.4, 0.2) p.CFrame = CFrame.new(0, 13, 19.7) p.BrickColor = BrickColor.new("Bright yellow") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForemastLower" p.Size = Vector3.new(20, 1.5, 1.5) p.CFrame = CFrame.new(0, 18, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForemastPlatform" p.Size = Vector3.new(0.5, 6, 6) p.CFrame = CFrame.new(0, 28, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForemastUpper" p.Size = Vector3.new(20, 1, 1) p.CFrame = CFrame.new(0, 38, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainmastLower" p.Size = Vector3.new(30, 2, 2) p.CFrame = CFrame.new(0, 23, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainmastPlatform1" p.Size = Vector3.new(0.5, 8, 8) p.CFrame = CFrame.new(0, 38, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainmastMid" p.Size = Vector3.new(20, 1.5, 1.5) p.CFrame = CFrame.new(0, 48, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainmastPlatform2" p.Size = Vector3.new(0.5, 5, 5) p.CFrame = CFrame.new(0, 58, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainmastUpper" p.Size = Vector3.new(20, 0.96, 0.96) p.CFrame = CFrame.new(0, 68, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MizzenmastLower" p.Size = Vector3.new(16, 1.2, 1.2) p.CFrame = CFrame.new(0, 20, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MizzenmastPlatform" p.Size = Vector3.new(0.5, 5, 5) p.CFrame = CFrame.new(0, 28, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MizzenmastUpper" p.Size = Vector3.new(16, 0.8, 0.8) p.CFrame = CFrame.new(0, 36, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "BowspritPole" p.Size = Vector3.new(16, 1, 1) p.CFrame = CFrame.new(0, 14, -32) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForeYardLower" p.Size = Vector3.new(24, 0.8, 0.8) p.CFrame = CFrame.new(0, 22, -13) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForeSailLower" p.Size = Vector3.new(22, 1.46, 1.46) p.CFrame = CFrame.new(0, 21.5, -13) p.BrickColor = BrickColor.new("Institutional white") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Glue" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForeYardUpper" p.Size = Vector3.new(16, 0.6, 0.6) p.CFrame = CFrame.new(0, 34, -12.8) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "ForeSailUpper" p.Size = Vector3.new(14, 1.2, 1.2) p.CFrame = CFrame.new(0, 33.6, -12.8) p.BrickColor = BrickColor.new("Institutional white") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Glue" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainYardLower" p.Size = Vector3.new(32, 1, 1) p.CFrame = CFrame.new(0, 28, 0.8) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainSailLower" p.Size = Vector3.new(30, 1.96, 1.96) p.CFrame = CFrame.new(0, 27.4, 0.8) p.BrickColor = BrickColor.new("Institutional white") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Glue" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainYardMid" p.Size = Vector3.new(22, 0.8, 0.8) p.CFrame = CFrame.new(0, 44, 1) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainSailMid" p.Size = Vector3.new(20, 1.46, 1.46) p.CFrame = CFrame.new(0, 43.5, 1) p.BrickColor = BrickColor.new("Institutional white") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Glue" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainYardUpper" p.Size = Vector3.new(14, 0.6, 0.6) p.CFrame = CFrame.new(0, 62, 1.2) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MainSailUpper" p.Size = Vector3.new(12, 1, 1) p.CFrame = CFrame.new(0, 61.6, 1.2) p.BrickColor = BrickColor.new("Institutional white") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Glue" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MizzenYard" p.Size = Vector3.new(20, 0.6, 0.6) p.CFrame = CFrame.new(0, 24, 14) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Shape = Enum.PartType.Cylinder p.Name = "MizzenSail" p.Size = Vector3.new(18, 1.16, 1.16) p.CFrame = CFrame.new(0, 23.5, 14) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Institutional white") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Glue" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "RiggingMainFore1" p.Size = Vector3.new(0.2, 20, 0.2) p.CFrame = CFrame.new(0.04, 30, -5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Black") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Weld" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "RiggingMainFore2" p.Size = Vector3.new(0.2, 20, 0.2) p.CFrame = CFrame.new(0, 40, -5) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Black") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Weld" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "RiggingMainStern1" p.Size = Vector3.new(0.2, 18, 0.2) p.CFrame = CFrame.new(0.04, 30, 9) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Black") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Weld" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "RiggingMainStern2" p.Size = Vector3.new(0.2, 20, 0.2) p.CFrame = CFrame.new(0, 40, 9) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Black") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Weld" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "RiggingForeBow" p.Size = Vector3.new(0.2, 24, 0.2) p.CFrame = CFrame.new(0, 20, -22) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) p.BrickColor = BrickColor.new("Black") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Weld" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "SmallBoatHull" p.Size = Vector3.new(4, 1.5, 8) p.CFrame = CFrame.new(-15, 1, -10) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "SmallBoatCabin" p.Size = Vector3.new(3, 1.5, 4) p.CFrame = CFrame.new(-15, 2.5, -9) p.BrickColor = BrickColor.new("Reddish brown") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end do local p = Instance.new("Part") p.Name = "SmallBoatRoof" p.Size = Vector3.new(3.5, 0.5, 4.5) p.CFrame = CFrame.new(-15, 3.5, -9) p.BrickColor = BrickColor.new("Pine Cone") p.Material = Enum.Material.Glacier p.MaterialVariant = "2022 Small Stud" p.Anchored = true p.Parent = model end model.PrimaryPart = model:FindFirstChild("HullMid") print("GalleonShip built: " .. #model:GetChildren() .. " parts")