Loading model...
by Jaymond Rays · 9/12/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: GalleonShip |
| 3 | |
| 4 | local MS = game:GetService("MaterialService") |
| 5 | |
| 6 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 7 | if not ok then return warn(roots) end |
| 8 | |
| 9 | local tmp = Instance.new("Folder") |
| 10 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 11 | |
| 12 | for _, d in ipairs(tmp:GetDescendants()) do |
| 13 | if d:IsA("MaterialVariant") then |
| 14 | d.Parent = MS |
| 15 | end |
| 16 | end |
| 17 | tmp:Destroy() |
| 18 | |
| 19 | local model = Instance.new("Model") |
| 20 | model.Name = "GalleonShip" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Black"] = "2022 Glue", |
| 25 | ["Brown"] = "2022 Stud", |
| 26 | ["Cool yellow"] = "2022 Stud", |
| 27 | ["Dark taupe"] = "2022 Stud", |
| 28 | ["Nougat"] = "2022 Stud", |
| 29 | ["Really red"] = "2022 Stud", |
| 30 | ["Reddish brown"] = "2022 Small Stud", |
| 31 | } |
| 32 | do |
| 33 | local p = Instance.new("Part") |
| 34 | p.Name = "HullBottom" |
| 35 | p.Size = Vector3.new(6, 2, 18) |
| 36 | p.CFrame = CFrame.new(0, -0.08, 0) |
| 37 | p.BrickColor = BrickColor.new("Dark taupe") |
| 38 | p.Material = Enum.Material.Glacier |
| 39 | p.MaterialVariant = "2022 Stud" |
| 40 | p.Anchored = true |
| 41 | p.Parent = model |
| 42 | end |
| 43 | do |
| 44 | local p = Instance.new("Part") |
| 45 | p.Name = "HullMid" |
| 46 | p.Size = Vector3.new(7, 2, 20) |
| 47 | p.CFrame = CFrame.new(0, 1.96, 0) |
| 48 | p.BrickColor = BrickColor.new("Reddish brown") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 Small Stud" |
| 51 | p.Anchored = true |
| 52 | p.Parent = model |
| 53 | end |
| 54 | do |
| 55 | local p = Instance.new("Part") |
| 56 | p.Name = "HullTop" |
| 57 | p.Size = Vector3.new(8, 2, 22) |
| 58 | p.CFrame = CFrame.new(0, 4, 0) |
| 59 | p.BrickColor = BrickColor.new("Reddish brown") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Small Stud" |
| 62 | p.Anchored = true |
| 63 | p.Parent = model |
| 64 | end |
| 65 | do |
| 66 | local p = Instance.new("Part") |
| 67 | p.Name = "BowMid" |
| 68 | p.Size = Vector3.new(5, 2, 4) |
| 69 | p.CFrame = CFrame.new(0, 1.96, -11) |
| 70 | p.BrickColor = BrickColor.new("Reddish brown") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Small Stud" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local p = Instance.new("Part") |
| 78 | p.Name = "BowTop" |
| 79 | p.Size = Vector3.new(6, 2, 4) |
| 80 | p.CFrame = CFrame.new(0, 4.04, -12) |
| 81 | p.BrickColor = BrickColor.new("Reddish brown") |
| 82 | p.Material = Enum.Material.Glacier |
| 83 | p.MaterialVariant = "2022 Small Stud" |
| 84 | p.Anchored = true |
| 85 | p.Parent = model |
| 86 | end |
| 87 | do |
| 88 | local p = Instance.new("Part") |
| 89 | p.Name = "BowTip" |
| 90 | p.Size = Vector3.new(2, 1.5, 3) |
| 91 | p.CFrame = CFrame.new(0, 5, -14) |
| 92 | p.BrickColor = BrickColor.new("Reddish brown") |
| 93 | p.Material = Enum.Material.Glacier |
| 94 | p.MaterialVariant = "2022 Small Stud" |
| 95 | p.Anchored = true |
| 96 | p.Parent = model |
| 97 | end |
| 98 | do |
| 99 | local p = Instance.new("Part") |
| 100 | p.Shape = Enum.PartType.Cylinder |
| 101 | p.Name = "Bowsprit" |
| 102 | p.Size = Vector3.new(6.94622, 0.8, 0.8) |
| 103 | p.CFrame = CFrame.new(0, 7.25, -17) * CFrame.Angles(math.rad(30.2564), math.rad(90), math.rad(0)) |
| 104 | p.BrickColor = BrickColor.new("Brown") |
| 105 | p.Material = Enum.Material.Glacier |
| 106 | p.MaterialVariant = "2022 Stud" |
| 107 | p.Anchored = true |
| 108 | p.Parent = model |
| 109 | end |
| 110 | do |
| 111 | local p = Instance.new("Part") |
| 112 | p.Name = "SternMid" |
| 113 | p.Size = Vector3.new(6, 2, 4) |
| 114 | p.CFrame = CFrame.new(0, 1.96, 11) |
| 115 | p.BrickColor = BrickColor.new("Reddish brown") |
| 116 | p.Material = Enum.Material.Glacier |
| 117 | p.MaterialVariant = "2022 Small Stud" |
| 118 | p.Anchored = true |
| 119 | p.Parent = model |
| 120 | end |
| 121 | do |
| 122 | local p = Instance.new("Part") |
| 123 | p.Name = "SternTop" |
| 124 | p.Size = Vector3.new(7, 2, 4) |
| 125 | p.CFrame = CFrame.new(0, 4.04, 12) |
| 126 | p.BrickColor = BrickColor.new("Reddish brown") |
| 127 | p.Material = Enum.Material.Glacier |
| 128 | p.MaterialVariant = "2022 Small Stud" |
| 129 | p.Anchored = true |
| 130 | p.Parent = model |
| 131 | end |
| 132 | do |
| 133 | local p = Instance.new("Part") |
| 134 | p.Name = "SternCastle1" |
| 135 | p.Size = Vector3.new(7.5, 2, 6) |
| 136 | p.CFrame = CFrame.new(0, 6.04, 10) |
| 137 | p.BrickColor = BrickColor.new("Reddish brown") |
| 138 | p.Material = Enum.Material.Glacier |
| 139 | p.MaterialVariant = "2022 Small Stud" |
| 140 | p.Anchored = true |
| 141 | p.Parent = model |
| 142 | end |
| 143 | do |
| 144 | local p = Instance.new("Part") |
| 145 | p.Name = "SternCastle2" |
| 146 | p.Size = Vector3.new(7, 2, 5) |
| 147 | p.CFrame = CFrame.new(0, 8.08, 11) |
| 148 | p.BrickColor = BrickColor.new("Reddish brown") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Small Stud" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Name = "SternGlow1" |
| 157 | p.Size = Vector3.new(1, 1, 0.2) |
| 158 | p.CFrame = CFrame.new(-2, 7, 13.14) |
| 159 | p.BrickColor = BrickColor.new("Deep orange") |
| 160 | p.Material = Enum.Material.Neon |
| 161 | p.Anchored = true |
| 162 | p.Parent = model |
| 163 | end |
| 164 | do |
| 165 | local p = Instance.new("Part") |
| 166 | p.Name = "SternGlow2" |
| 167 | p.Size = Vector3.new(1, 1, 0.2) |
| 168 | p.CFrame = CFrame.new(0, 7, 13.14) |
| 169 | p.BrickColor = BrickColor.new("Deep orange") |
| 170 | p.Material = Enum.Material.Neon |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Name = "SternGlow3" |
| 177 | p.Size = Vector3.new(1, 1, 0.2) |
| 178 | p.CFrame = CFrame.new(2, 7, 13.14) |
| 179 | p.BrickColor = BrickColor.new("Deep orange") |
| 180 | p.Material = Enum.Material.Neon |
| 181 | p.Anchored = true |
| 182 | p.Parent = model |
| 183 | end |
| 184 | do |
| 185 | local p = Instance.new("Part") |
| 186 | p.Name = "SternGlow4" |
| 187 | p.Size = Vector3.new(1, 1, 0.2) |
| 188 | p.CFrame = CFrame.new(-1.5, 9, 13.64) |
| 189 | p.BrickColor = BrickColor.new("Deep orange") |
| 190 | p.Material = Enum.Material.Neon |
| 191 | p.Anchored = true |
| 192 | p.Parent = model |
| 193 | end |
| 194 | do |
| 195 | local p = Instance.new("Part") |
| 196 | p.Name = "SternGlow5" |
| 197 | p.Size = Vector3.new(1, 1, 0.2) |
| 198 | p.CFrame = CFrame.new(1.5, 9, 13.64) |
| 199 | p.BrickColor = BrickColor.new("Deep orange") |
| 200 | p.Material = Enum.Material.Neon |
| 201 | p.Anchored = true |
| 202 | p.Parent = model |
| 203 | end |
| 204 | do |
| 205 | local p = Instance.new("Part") |
| 206 | p.Name = "SideGlowL_-6" |
| 207 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 208 | p.CFrame = CFrame.new(-3.64, 3, -6) |
| 209 | p.BrickColor = BrickColor.new("Deep orange") |
| 210 | p.Material = Enum.Material.Neon |
| 211 | p.Anchored = true |
| 212 | p.Parent = model |
| 213 | end |
| 214 | do |
| 215 | local p = Instance.new("Part") |
| 216 | p.Name = "SideGlowR_-6" |
| 217 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 218 | p.CFrame = CFrame.new(3.64, 3, -6) |
| 219 | p.BrickColor = BrickColor.new("Deep orange") |
| 220 | p.Material = Enum.Material.Neon |
| 221 | p.Anchored = true |
| 222 | p.Parent = model |
| 223 | end |
| 224 | do |
| 225 | local p = Instance.new("Part") |
| 226 | p.Name = "SideGlowL_-3" |
| 227 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 228 | p.CFrame = CFrame.new(-3.64, 3, -3) |
| 229 | p.BrickColor = BrickColor.new("Deep orange") |
| 230 | p.Material = Enum.Material.Neon |
| 231 | p.Anchored = true |
| 232 | p.Parent = model |
| 233 | end |
| 234 | do |
| 235 | local p = Instance.new("Part") |
| 236 | p.Name = "SideGlowR_-3" |
| 237 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 238 | p.CFrame = CFrame.new(3.64, 3, -3) |
| 239 | p.BrickColor = BrickColor.new("Deep orange") |
| 240 | p.Material = Enum.Material.Neon |
| 241 | p.Anchored = true |
| 242 | p.Parent = model |
| 243 | end |
| 244 | do |
| 245 | local p = Instance.new("Part") |
| 246 | p.Name = "SideGlowL_0" |
| 247 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 248 | p.CFrame = CFrame.new(-3.64, 3, 0) |
| 249 | p.BrickColor = BrickColor.new("Deep orange") |
| 250 | p.Material = Enum.Material.Neon |
| 251 | p.Anchored = true |
| 252 | p.Parent = model |
| 253 | end |
| 254 | do |
| 255 | local p = Instance.new("Part") |
| 256 | p.Name = "SideGlowR_0" |
| 257 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 258 | p.CFrame = CFrame.new(3.64, 3, 0) |
| 259 | p.BrickColor = BrickColor.new("Deep orange") |
| 260 | p.Material = Enum.Material.Neon |
| 261 | p.Anchored = true |
| 262 | p.Parent = model |
| 263 | end |
| 264 | do |
| 265 | local p = Instance.new("Part") |
| 266 | p.Name = "SideGlowL_3" |
| 267 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 268 | p.CFrame = CFrame.new(-3.64, 3, 3) |
| 269 | p.BrickColor = BrickColor.new("Deep orange") |
| 270 | p.Material = Enum.Material.Neon |
| 271 | p.Anchored = true |
| 272 | p.Parent = model |
| 273 | end |
| 274 | do |
| 275 | local p = Instance.new("Part") |
| 276 | p.Name = "SideGlowR_3" |
| 277 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 278 | p.CFrame = CFrame.new(3.64, 3, 3) |
| 279 | p.BrickColor = BrickColor.new("Deep orange") |
| 280 | p.Material = Enum.Material.Neon |
| 281 | p.Anchored = true |
| 282 | p.Parent = model |
| 283 | end |
| 284 | do |
| 285 | local p = Instance.new("Part") |
| 286 | p.Name = "SideGlowL_6" |
| 287 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 288 | p.CFrame = CFrame.new(-3.64, 3, 6) |
| 289 | p.BrickColor = BrickColor.new("Deep orange") |
| 290 | p.Material = Enum.Material.Neon |
| 291 | p.Anchored = true |
| 292 | p.Parent = model |
| 293 | end |
| 294 | do |
| 295 | local p = Instance.new("Part") |
| 296 | p.Name = "SideGlowR_6" |
| 297 | p.Size = Vector3.new(0.2, 0.8, 0.8) |
| 298 | p.CFrame = CFrame.new(3.64, 3, 6) |
| 299 | p.BrickColor = BrickColor.new("Deep orange") |
| 300 | p.Material = Enum.Material.Neon |
| 301 | p.Anchored = true |
| 302 | p.Parent = model |
| 303 | end |
| 304 | do |
| 305 | local p = Instance.new("Part") |
| 306 | p.Name = "DeckMain" |
| 307 | p.Size = Vector3.new(7.5, 0.2, 16) |
| 308 | p.CFrame = CFrame.new(0, 5.14, -1.96) |
| 309 | p.BrickColor = BrickColor.new("Nougat") |
| 310 | p.Material = Enum.Material.Glacier |
| 311 | p.MaterialVariant = "2022 Stud" |
| 312 | p.Anchored = true |
| 313 | p.Parent = model |
| 314 | end |
| 315 | do |
| 316 | local p = Instance.new("Part") |
| 317 | p.Shape = Enum.PartType.Cylinder |
| 318 | p.Name = "Foremast" |
| 319 | p.Size = Vector3.new(14, 1, 1) |
| 320 | p.CFrame = CFrame.new(0, 12.04, -6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 321 | p.BrickColor = BrickColor.new("Brown") |
| 322 | p.Material = Enum.Material.Glacier |
| 323 | p.MaterialVariant = "2022 Stud" |
| 324 | p.Anchored = true |
| 325 | p.Parent = model |
| 326 | end |
| 327 | do |
| 328 | local p = Instance.new("Part") |
| 329 | p.Shape = Enum.PartType.Cylinder |
| 330 | p.Name = "Mainmast" |
| 331 | p.Size = Vector3.new(18, 1.2, 1.2) |
| 332 | p.CFrame = CFrame.new(0, 14.04, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 333 | p.BrickColor = BrickColor.new("Brown") |
| 334 | p.Material = Enum.Material.Glacier |
| 335 | p.MaterialVariant = "2022 Stud" |
| 336 | p.Anchored = true |
| 337 | p.Parent = model |
| 338 | end |
| 339 | do |
| 340 | local p = Instance.new("Part") |
| 341 | p.Shape = Enum.PartType.Cylinder |
| 342 | p.Name = "Mizzenmast" |
| 343 | p.Size = Vector3.new(12, 0.8, 0.8) |
| 344 | p.CFrame = CFrame.new(0, 11.04, 6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 345 | p.BrickColor = BrickColor.new("Brown") |
| 346 | p.Material = Enum.Material.Glacier |
| 347 | p.MaterialVariant = "2022 Stud" |
| 348 | p.Anchored = true |
| 349 | p.Parent = model |
| 350 | end |
| 351 | do |
| 352 | local p = Instance.new("Part") |
| 353 | p.Shape = Enum.PartType.Cylinder |
| 354 | p.Name = "CrowsNestFore" |
| 355 | p.Size = Vector3.new(1, 3, 3) |
| 356 | p.CFrame = CFrame.new(0, 14, -6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 357 | p.BrickColor = BrickColor.new("Dark taupe") |
| 358 | p.Material = Enum.Material.Glacier |
| 359 | p.MaterialVariant = "2022 Stud" |
| 360 | p.Anchored = true |
| 361 | p.Parent = model |
| 362 | end |
| 363 | do |
| 364 | local p = Instance.new("Part") |
| 365 | p.Shape = Enum.PartType.Cylinder |
| 366 | p.Name = "CrowsNestMain" |
| 367 | p.Size = Vector3.new(1, 3.5, 3.5) |
| 368 | p.CFrame = CFrame.new(0, 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 369 | p.BrickColor = BrickColor.new("Dark taupe") |
| 370 | p.Material = Enum.Material.Glacier |
| 371 | p.MaterialVariant = "2022 Stud" |
| 372 | p.Anchored = true |
| 373 | p.Parent = model |
| 374 | end |
| 375 | do |
| 376 | local p = Instance.new("Part") |
| 377 | p.Shape = Enum.PartType.Cylinder |
| 378 | p.Name = "CrowsNestMizzen" |
| 379 | p.Size = Vector3.new(1, 2.5, 2.5) |
| 380 | p.CFrame = CFrame.new(0, 12, 6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 381 | p.BrickColor = BrickColor.new("Dark taupe") |
| 382 | p.Material = Enum.Material.Glacier |
| 383 | p.MaterialVariant = "2022 Stud" |
| 384 | p.Anchored = true |
| 385 | p.Parent = model |
| 386 | end |
| 387 | do |
| 388 | local p = Instance.new("Part") |
| 389 | p.Shape = Enum.PartType.Cylinder |
| 390 | p.Name = "ForeYardLow" |
| 391 | p.Size = Vector3.new(10, 0.4, 0.4) |
| 392 | p.CFrame = CFrame.new(0, 9, -5.8) |
| 393 | p.BrickColor = BrickColor.new("Brown") |
| 394 | p.Material = Enum.Material.Glacier |
| 395 | p.MaterialVariant = "2022 Stud" |
| 396 | p.Anchored = true |
| 397 | p.Parent = model |
| 398 | end |
| 399 | do |
| 400 | local p = Instance.new("Part") |
| 401 | p.Shape = Enum.PartType.Cylinder |
| 402 | p.Name = "ForeYardMid" |
| 403 | p.Size = Vector3.new(8, 0.3, 0.3) |
| 404 | p.CFrame = CFrame.new(0, 15, -5.8) |
| 405 | p.BrickColor = BrickColor.new("Brown") |
| 406 | p.Material = Enum.Material.Glacier |
| 407 | p.MaterialVariant = "2022 Stud" |
| 408 | p.Anchored = true |
| 409 | p.Parent = model |
| 410 | end |
| 411 | do |
| 412 | local p = Instance.new("Part") |
| 413 | p.Shape = Enum.PartType.Cylinder |
| 414 | p.Name = "MainYardLow" |
| 415 | p.Size = Vector3.new(12, 0.5, 0.5) |
| 416 | p.CFrame = CFrame.new(0, 10, 0.2) |
| 417 | p.BrickColor = BrickColor.new("Brown") |
| 418 | p.Material = Enum.Material.Glacier |
| 419 | p.MaterialVariant = "2022 Stud" |
| 420 | p.Anchored = true |
| 421 | p.Parent = model |
| 422 | end |
| 423 | do |
| 424 | local p = Instance.new("Part") |
| 425 | p.Shape = Enum.PartType.Cylinder |
| 426 | p.Name = "MainYardMid" |
| 427 | p.Size = Vector3.new(10, 0.4, 0.4) |
| 428 | p.CFrame = CFrame.new(0, 17, 0.2) |
| 429 | p.BrickColor = BrickColor.new("Brown") |
| 430 | p.Material = Enum.Material.Glacier |
| 431 | p.MaterialVariant = "2022 Stud" |
| 432 | p.Anchored = true |
| 433 | p.Parent = model |
| 434 | end |
| 435 | do |
| 436 | local p = Instance.new("Part") |
| 437 | p.Shape = Enum.PartType.Cylinder |
| 438 | p.Name = "MainYardHigh" |
| 439 | p.Size = Vector3.new(6, 0.3, 0.3) |
| 440 | p.CFrame = CFrame.new(0, 21, 0.2) |
| 441 | p.BrickColor = BrickColor.new("Brown") |
| 442 | p.Material = Enum.Material.Glacier |
| 443 | p.MaterialVariant = "2022 Stud" |
| 444 | p.Anchored = true |
| 445 | p.Parent = model |
| 446 | end |
| 447 | do |
| 448 | local p = Instance.new("Part") |
| 449 | p.Shape = Enum.PartType.Cylinder |
| 450 | p.Name = "MizzenYardLow" |
| 451 | p.Size = Vector3.new(8, 0.4, 0.4) |
| 452 | p.CFrame = CFrame.new(0, 9, 6.2) |
| 453 | p.BrickColor = BrickColor.new("Brown") |
| 454 | p.Material = Enum.Material.Glacier |
| 455 | p.MaterialVariant = "2022 Stud" |
| 456 | p.Anchored = true |
| 457 | p.Parent = model |
| 458 | end |
| 459 | do |
| 460 | local p = Instance.new("Part") |
| 461 | p.Shape = Enum.PartType.Cylinder |
| 462 | p.Name = "MizzenYardMid" |
| 463 | p.Size = Vector3.new(6, 0.3, 0.3) |
| 464 | p.CFrame = CFrame.new(0, 14, 6.2) |
| 465 | p.BrickColor = BrickColor.new("Brown") |
| 466 | p.Material = Enum.Material.Glacier |
| 467 | p.MaterialVariant = "2022 Stud" |
| 468 | p.Anchored = true |
| 469 | p.Parent = model |
| 470 | end |
| 471 | do |
| 472 | local p = Instance.new("Part") |
| 473 | p.Shape = Enum.PartType.Cylinder |
| 474 | p.Name = "RiggingForeL" |
| 475 | p.Size = Vector3.new(9.6566, 0.01, 0.01) |
| 476 | p.CFrame = CFrame.new(-1.75, 9.5, -6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(68.7495)) |
| 477 | p.BrickColor = BrickColor.new("Black") |
| 478 | p.Material = Enum.Material.Glacier |
| 479 | p.MaterialVariant = "2022 Glue" |
| 480 | p.Anchored = true |
| 481 | p.Parent = model |
| 482 | end |
| 483 | do |
| 484 | local p = Instance.new("Part") |
| 485 | p.Shape = Enum.PartType.Cylinder |
| 486 | p.Name = "RiggingForeR" |
| 487 | p.Size = Vector3.new(9.6566, 0.01, 0.01) |
| 488 | p.CFrame = CFrame.new(1.75, 9.5, -6) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-111.251)) |
| 489 | p.BrickColor = BrickColor.new("Black") |
| 490 | p.Material = Enum.Material.Glacier |
| 491 | p.MaterialVariant = "2022 Glue" |
| 492 | p.Anchored = true |
| 493 | p.Parent = model |
| 494 | end |
| 495 | do |
| 496 | local p = Instance.new("Part") |
| 497 | p.Shape = Enum.PartType.Cylinder |
| 498 | p.Name = "RiggingMainL" |
| 499 | p.Size = Vector3.new(11.6379, 0.01, 0.01) |
| 500 | p.CFrame = CFrame.new(-1.9, 10.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(70.9423)) |
| 501 | p.BrickColor = BrickColor.new("Black") |
| 502 | p.Material = Enum.Material.Glacier |
| 503 | p.MaterialVariant = "2022 Glue" |
| 504 | p.Anchored = true |
| 505 | p.Parent = model |
| 506 | end |
| 507 | do |
| 508 | local p = Instance.new("Part") |
| 509 | p.Shape = Enum.PartType.Cylinder |
| 510 | p.Name = "RiggingMainR" |
| 511 | p.Size = Vector3.new(11.6379, 0.01, 0.01) |
| 512 | p.CFrame = CFrame.new(1.9, 10.5, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-109.058)) |
| 513 | p.BrickColor = BrickColor.new("Black") |
| 514 | p.Material = Enum.Material.Glacier |
| 515 | p.MaterialVariant = "2022 Glue" |
| 516 | p.Anchored = true |
| 517 | p.Parent = model |
| 518 | end |
| 519 | do |
| 520 | local p = Instance.new("Part") |
| 521 | p.Shape = Enum.PartType.Cylinder |
| 522 | p.Name = "RiggingMizzenL" |
| 523 | p.Size = Vector3.new(6.94622, 0.01, 0.01) |
| 524 | p.CFrame = CFrame.new(-1.75, 9, 6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(59.7436)) |
| 525 | p.BrickColor = BrickColor.new("Black") |
| 526 | p.Material = Enum.Material.Glacier |
| 527 | p.MaterialVariant = "2022 Glue" |
| 528 | p.Anchored = true |
| 529 | p.Parent = model |
| 530 | end |
| 531 | do |
| 532 | local p = Instance.new("Part") |
| 533 | p.Shape = Enum.PartType.Cylinder |
| 534 | p.Name = "RiggingMizzenR" |
| 535 | p.Size = Vector3.new(6.94622, 0.01, 0.01) |
| 536 | p.CFrame = CFrame.new(1.75, 9, 6) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-120.256)) |
| 537 | p.BrickColor = BrickColor.new("Black") |
| 538 | p.Material = Enum.Material.Glacier |
| 539 | p.MaterialVariant = "2022 Glue" |
| 540 | p.Anchored = true |
| 541 | p.Parent = model |
| 542 | end |
| 543 | do |
| 544 | local p = Instance.new("Part") |
| 545 | p.Shape = Enum.PartType.Cylinder |
| 546 | p.Name = "FlagPole" |
| 547 | p.Size = Vector3.new(2, 0.2, 0.2) |
| 548 | p.CFrame = CFrame.new(0, 24.08, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 549 | p.BrickColor = BrickColor.new("Brown") |
| 550 | p.Material = Enum.Material.Glacier |
| 551 | p.MaterialVariant = "2022 Stud" |
| 552 | p.Anchored = true |
| 553 | p.Parent = model |
| 554 | end |
| 555 | do |
| 556 | local p = Instance.new("Part") |
| 557 | p.Name = "Flag" |
| 558 | p.Size = Vector3.new(0.1, 1, 2) |
| 559 | p.CFrame = CFrame.new(0, 24.5, 1) |
| 560 | p.BrickColor = BrickColor.new("Really red") |
| 561 | p.Material = Enum.Material.Glacier |
| 562 | p.MaterialVariant = "2022 Stud" |
| 563 | p.Anchored = true |
| 564 | p.Parent = model |
| 565 | end |
| 566 | do |
| 567 | local rightV = Vector3.new(1,0,0).Unit |
| 568 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 569 | local normalV = upV:Cross(rightV) |
| 570 | local pos = Vector3.new(0, 9, -5.5) |
| 571 | local cyl = Instance.new("Part") |
| 572 | cyl.Shape = Enum.PartType.Cylinder |
| 573 | cyl.Size = Vector3.new(0.5, 10, 10) |
| 574 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 575 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 576 | cyl.Material = Enum.Material.Glacier |
| 577 | cyl.MaterialVariant = "2022 Stud" |
| 578 | cyl.Anchored = true; cyl.Parent = workspace |
| 579 | local cuts = {} |
| 580 | local angBoxes = {} |
| 581 | do |
| 582 | local edgeDir = 1*rightV + 0*upV |
| 583 | local edgePerp = 0*rightV + 1*upV |
| 584 | local cut = Instance.new("Part") |
| 585 | cut.Size = Vector3.new(20, 0.7, 20) |
| 586 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 10 * edgePerp, edgeDir, normalV) |
| 587 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 588 | cut.Material = Enum.Material.Glacier |
| 589 | cut.MaterialVariant = "2022 Stud" |
| 590 | cut.Anchored = true; cut.Parent = workspace |
| 591 | table.insert(angBoxes, cut) |
| 592 | end |
| 593 | do |
| 594 | local edgeDir = -1*rightV + 0*upV |
| 595 | local edgePerp = 0*rightV + -1*upV |
| 596 | local cut = Instance.new("Part") |
| 597 | cut.Size = Vector3.new(20, 0.7, 20) |
| 598 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 10 * edgePerp, edgeDir, normalV) |
| 599 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 600 | cut.Material = Enum.Material.Glacier |
| 601 | cut.MaterialVariant = "2022 Stud" |
| 602 | cut.Anchored = true; cut.Parent = workspace |
| 603 | table.insert(angBoxes, cut) |
| 604 | end |
| 605 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 606 | if #cuts > 0 then |
| 607 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 608 | for _, c in ipairs(cuts) do c:Destroy() end |
| 609 | if ok and result then |
| 610 | cyl:Destroy() |
| 611 | result.Name = "ForeSailLow"; result.Anchored = true; result.Parent = model |
| 612 | else |
| 613 | cyl.Name = "ForeSailLow"; cyl.Parent = model |
| 614 | end |
| 615 | else |
| 616 | cyl.Name = "ForeSailLow"; cyl.Parent = model |
| 617 | end |
| 618 | end |
| 619 | do |
| 620 | local rightV = Vector3.new(1,0,0).Unit |
| 621 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 622 | local normalV = upV:Cross(rightV) |
| 623 | local pos = Vector3.new(0, 15, -5.5) |
| 624 | local cyl = Instance.new("Part") |
| 625 | cyl.Shape = Enum.PartType.Cylinder |
| 626 | cyl.Size = Vector3.new(0.5, 8, 8) |
| 627 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 628 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 629 | cyl.Material = Enum.Material.Glacier |
| 630 | cyl.MaterialVariant = "2022 Stud" |
| 631 | cyl.Anchored = true; cyl.Parent = workspace |
| 632 | local cuts = {} |
| 633 | local angBoxes = {} |
| 634 | do |
| 635 | local edgeDir = 1*rightV + 0*upV |
| 636 | local edgePerp = 0*rightV + 1*upV |
| 637 | local cut = Instance.new("Part") |
| 638 | cut.Size = Vector3.new(16, 0.7, 16) |
| 639 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 8 * edgePerp, edgeDir, normalV) |
| 640 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 641 | cut.Material = Enum.Material.Glacier |
| 642 | cut.MaterialVariant = "2022 Stud" |
| 643 | cut.Anchored = true; cut.Parent = workspace |
| 644 | table.insert(angBoxes, cut) |
| 645 | end |
| 646 | do |
| 647 | local edgeDir = -1*rightV + 0*upV |
| 648 | local edgePerp = 0*rightV + -1*upV |
| 649 | local cut = Instance.new("Part") |
| 650 | cut.Size = Vector3.new(16, 0.7, 16) |
| 651 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 8 * edgePerp, edgeDir, normalV) |
| 652 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 653 | cut.Material = Enum.Material.Glacier |
| 654 | cut.MaterialVariant = "2022 Stud" |
| 655 | cut.Anchored = true; cut.Parent = workspace |
| 656 | table.insert(angBoxes, cut) |
| 657 | end |
| 658 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 659 | if #cuts > 0 then |
| 660 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 661 | for _, c in ipairs(cuts) do c:Destroy() end |
| 662 | if ok and result then |
| 663 | cyl:Destroy() |
| 664 | result.Name = "ForeSailMid"; result.Anchored = true; result.Parent = model |
| 665 | else |
| 666 | cyl.Name = "ForeSailMid"; cyl.Parent = model |
| 667 | end |
| 668 | else |
| 669 | cyl.Name = "ForeSailMid"; cyl.Parent = model |
| 670 | end |
| 671 | end |
| 672 | do |
| 673 | local rightV = Vector3.new(1,0,0).Unit |
| 674 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 675 | local normalV = upV:Cross(rightV) |
| 676 | local pos = Vector3.new(0, 10, 0.5) |
| 677 | local cyl = Instance.new("Part") |
| 678 | cyl.Shape = Enum.PartType.Cylinder |
| 679 | cyl.Size = Vector3.new(0.5, 12, 12) |
| 680 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 681 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 682 | cyl.Material = Enum.Material.Glacier |
| 683 | cyl.MaterialVariant = "2022 Stud" |
| 684 | cyl.Anchored = true; cyl.Parent = workspace |
| 685 | local cuts = {} |
| 686 | local angBoxes = {} |
| 687 | do |
| 688 | local edgeDir = 1*rightV + 0*upV |
| 689 | local edgePerp = 0*rightV + 1*upV |
| 690 | local cut = Instance.new("Part") |
| 691 | cut.Size = Vector3.new(24, 0.7, 24) |
| 692 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 12 * edgePerp, edgeDir, normalV) |
| 693 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 694 | cut.Material = Enum.Material.Glacier |
| 695 | cut.MaterialVariant = "2022 Stud" |
| 696 | cut.Anchored = true; cut.Parent = workspace |
| 697 | table.insert(angBoxes, cut) |
| 698 | end |
| 699 | do |
| 700 | local edgeDir = -1*rightV + 0*upV |
| 701 | local edgePerp = 0*rightV + -1*upV |
| 702 | local cut = Instance.new("Part") |
| 703 | cut.Size = Vector3.new(24, 0.7, 24) |
| 704 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 12 * edgePerp, edgeDir, normalV) |
| 705 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 706 | cut.Material = Enum.Material.Glacier |
| 707 | cut.MaterialVariant = "2022 Stud" |
| 708 | cut.Anchored = true; cut.Parent = workspace |
| 709 | table.insert(angBoxes, cut) |
| 710 | end |
| 711 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 712 | if #cuts > 0 then |
| 713 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 714 | for _, c in ipairs(cuts) do c:Destroy() end |
| 715 | if ok and result then |
| 716 | cyl:Destroy() |
| 717 | result.Name = "MainSailLow"; result.Anchored = true; result.Parent = model |
| 718 | else |
| 719 | cyl.Name = "MainSailLow"; cyl.Parent = model |
| 720 | end |
| 721 | else |
| 722 | cyl.Name = "MainSailLow"; cyl.Parent = model |
| 723 | end |
| 724 | end |
| 725 | do |
| 726 | local rightV = Vector3.new(1,0,0).Unit |
| 727 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 728 | local normalV = upV:Cross(rightV) |
| 729 | local pos = Vector3.new(0, 17, 0.5) |
| 730 | local cyl = Instance.new("Part") |
| 731 | cyl.Shape = Enum.PartType.Cylinder |
| 732 | cyl.Size = Vector3.new(0.5, 10, 10) |
| 733 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 734 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 735 | cyl.Material = Enum.Material.Glacier |
| 736 | cyl.MaterialVariant = "2022 Stud" |
| 737 | cyl.Anchored = true; cyl.Parent = workspace |
| 738 | local cuts = {} |
| 739 | local angBoxes = {} |
| 740 | do |
| 741 | local edgeDir = 1*rightV + 0*upV |
| 742 | local edgePerp = 0*rightV + 1*upV |
| 743 | local cut = Instance.new("Part") |
| 744 | cut.Size = Vector3.new(20, 0.7, 20) |
| 745 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 10 * edgePerp, edgeDir, normalV) |
| 746 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 747 | cut.Material = Enum.Material.Glacier |
| 748 | cut.MaterialVariant = "2022 Stud" |
| 749 | cut.Anchored = true; cut.Parent = workspace |
| 750 | table.insert(angBoxes, cut) |
| 751 | end |
| 752 | do |
| 753 | local edgeDir = -1*rightV + 0*upV |
| 754 | local edgePerp = 0*rightV + -1*upV |
| 755 | local cut = Instance.new("Part") |
| 756 | cut.Size = Vector3.new(20, 0.7, 20) |
| 757 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 10 * edgePerp, edgeDir, normalV) |
| 758 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 759 | cut.Material = Enum.Material.Glacier |
| 760 | cut.MaterialVariant = "2022 Stud" |
| 761 | cut.Anchored = true; cut.Parent = workspace |
| 762 | table.insert(angBoxes, cut) |
| 763 | end |
| 764 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 765 | if #cuts > 0 then |
| 766 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 767 | for _, c in ipairs(cuts) do c:Destroy() end |
| 768 | if ok and result then |
| 769 | cyl:Destroy() |
| 770 | result.Name = "MainSailMid"; result.Anchored = true; result.Parent = model |
| 771 | else |
| 772 | cyl.Name = "MainSailMid"; cyl.Parent = model |
| 773 | end |
| 774 | else |
| 775 | cyl.Name = "MainSailMid"; cyl.Parent = model |
| 776 | end |
| 777 | end |
| 778 | do |
| 779 | local rightV = Vector3.new(1,0,0).Unit |
| 780 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 781 | local normalV = upV:Cross(rightV) |
| 782 | local pos = Vector3.new(0, 21, 0.54) |
| 783 | local cyl = Instance.new("Part") |
| 784 | cyl.Shape = Enum.PartType.Cylinder |
| 785 | cyl.Size = Vector3.new(0.5, 6, 6) |
| 786 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 787 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 788 | cyl.Material = Enum.Material.Glacier |
| 789 | cyl.MaterialVariant = "2022 Stud" |
| 790 | cyl.Anchored = true; cyl.Parent = workspace |
| 791 | local cuts = {} |
| 792 | local angBoxes = {} |
| 793 | do |
| 794 | local edgeDir = 1*rightV + 0*upV |
| 795 | local edgePerp = 0*rightV + 1*upV |
| 796 | local cut = Instance.new("Part") |
| 797 | cut.Size = Vector3.new(12, 0.7, 12) |
| 798 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 799 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 800 | cut.Material = Enum.Material.Glacier |
| 801 | cut.MaterialVariant = "2022 Stud" |
| 802 | cut.Anchored = true; cut.Parent = workspace |
| 803 | table.insert(angBoxes, cut) |
| 804 | end |
| 805 | do |
| 806 | local edgeDir = -1*rightV + 0*upV |
| 807 | local edgePerp = 0*rightV + -1*upV |
| 808 | local cut = Instance.new("Part") |
| 809 | cut.Size = Vector3.new(12, 0.7, 12) |
| 810 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 811 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 812 | cut.Material = Enum.Material.Glacier |
| 813 | cut.MaterialVariant = "2022 Stud" |
| 814 | cut.Anchored = true; cut.Parent = workspace |
| 815 | table.insert(angBoxes, cut) |
| 816 | end |
| 817 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 818 | if #cuts > 0 then |
| 819 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 820 | for _, c in ipairs(cuts) do c:Destroy() end |
| 821 | if ok and result then |
| 822 | cyl:Destroy() |
| 823 | result.Name = "MainSailHigh"; result.Anchored = true; result.Parent = model |
| 824 | else |
| 825 | cyl.Name = "MainSailHigh"; cyl.Parent = model |
| 826 | end |
| 827 | else |
| 828 | cyl.Name = "MainSailHigh"; cyl.Parent = model |
| 829 | end |
| 830 | end |
| 831 | do |
| 832 | local rightV = Vector3.new(1,0,0).Unit |
| 833 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 834 | local normalV = upV:Cross(rightV) |
| 835 | local pos = Vector3.new(0, 9, 6.5) |
| 836 | local cyl = Instance.new("Part") |
| 837 | cyl.Shape = Enum.PartType.Cylinder |
| 838 | cyl.Size = Vector3.new(0.5, 8, 8) |
| 839 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 840 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 841 | cyl.Material = Enum.Material.Glacier |
| 842 | cyl.MaterialVariant = "2022 Stud" |
| 843 | cyl.Anchored = true; cyl.Parent = workspace |
| 844 | local cuts = {} |
| 845 | local angBoxes = {} |
| 846 | do |
| 847 | local edgeDir = 1*rightV + 0*upV |
| 848 | local edgePerp = 0*rightV + 1*upV |
| 849 | local cut = Instance.new("Part") |
| 850 | cut.Size = Vector3.new(16, 0.7, 16) |
| 851 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 8 * edgePerp, edgeDir, normalV) |
| 852 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 853 | cut.Material = Enum.Material.Glacier |
| 854 | cut.MaterialVariant = "2022 Stud" |
| 855 | cut.Anchored = true; cut.Parent = workspace |
| 856 | table.insert(angBoxes, cut) |
| 857 | end |
| 858 | do |
| 859 | local edgeDir = -1*rightV + 0*upV |
| 860 | local edgePerp = 0*rightV + -1*upV |
| 861 | local cut = Instance.new("Part") |
| 862 | cut.Size = Vector3.new(16, 0.7, 16) |
| 863 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 8 * edgePerp, edgeDir, normalV) |
| 864 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 865 | cut.Material = Enum.Material.Glacier |
| 866 | cut.MaterialVariant = "2022 Stud" |
| 867 | cut.Anchored = true; cut.Parent = workspace |
| 868 | table.insert(angBoxes, cut) |
| 869 | end |
| 870 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 871 | if #cuts > 0 then |
| 872 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 873 | for _, c in ipairs(cuts) do c:Destroy() end |
| 874 | if ok and result then |
| 875 | cyl:Destroy() |
| 876 | result.Name = "MizzenSailLow"; result.Anchored = true; result.Parent = model |
| 877 | else |
| 878 | cyl.Name = "MizzenSailLow"; cyl.Parent = model |
| 879 | end |
| 880 | else |
| 881 | cyl.Name = "MizzenSailLow"; cyl.Parent = model |
| 882 | end |
| 883 | end |
| 884 | do |
| 885 | local rightV = Vector3.new(1,0,0).Unit |
| 886 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 887 | local normalV = upV:Cross(rightV) |
| 888 | local pos = Vector3.new(0, 14, 6.5) |
| 889 | local cyl = Instance.new("Part") |
| 890 | cyl.Shape = Enum.PartType.Cylinder |
| 891 | cyl.Size = Vector3.new(0.5, 6, 6) |
| 892 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 893 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 894 | cyl.Material = Enum.Material.Glacier |
| 895 | cyl.MaterialVariant = "2022 Stud" |
| 896 | cyl.Anchored = true; cyl.Parent = workspace |
| 897 | local cuts = {} |
| 898 | local angBoxes = {} |
| 899 | do |
| 900 | local edgeDir = 1*rightV + 0*upV |
| 901 | local edgePerp = 0*rightV + 1*upV |
| 902 | local cut = Instance.new("Part") |
| 903 | cut.Size = Vector3.new(12, 0.7, 12) |
| 904 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 905 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 906 | cut.Material = Enum.Material.Glacier |
| 907 | cut.MaterialVariant = "2022 Stud" |
| 908 | cut.Anchored = true; cut.Parent = workspace |
| 909 | table.insert(angBoxes, cut) |
| 910 | end |
| 911 | do |
| 912 | local edgeDir = -1*rightV + 0*upV |
| 913 | local edgePerp = 0*rightV + -1*upV |
| 914 | local cut = Instance.new("Part") |
| 915 | cut.Size = Vector3.new(12, 0.7, 12) |
| 916 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 917 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 918 | cut.Material = Enum.Material.Glacier |
| 919 | cut.MaterialVariant = "2022 Stud" |
| 920 | cut.Anchored = true; cut.Parent = workspace |
| 921 | table.insert(angBoxes, cut) |
| 922 | end |
| 923 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 924 | if #cuts > 0 then |
| 925 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 926 | for _, c in ipairs(cuts) do c:Destroy() end |
| 927 | if ok and result then |
| 928 | cyl:Destroy() |
| 929 | result.Name = "MizzenSailMid"; result.Anchored = true; result.Parent = model |
| 930 | else |
| 931 | cyl.Name = "MizzenSailMid"; cyl.Parent = model |
| 932 | end |
| 933 | else |
| 934 | cyl.Name = "MizzenSailMid"; cyl.Parent = model |
| 935 | end |
| 936 | end |
| 937 | do |
| 938 | local rightV = Vector3.new(1,0,0).Unit |
| 939 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 940 | local normalV = upV:Cross(rightV) |
| 941 | local pos = Vector3.new(0, 7, -16) |
| 942 | local cyl = Instance.new("Part") |
| 943 | cyl.Shape = Enum.PartType.Cylinder |
| 944 | cyl.Size = Vector3.new(0.5, 6, 6) |
| 945 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 946 | cyl.BrickColor = BrickColor.new("Cool yellow") |
| 947 | cyl.Material = Enum.Material.Glacier |
| 948 | cyl.MaterialVariant = "2022 Stud" |
| 949 | cyl.Anchored = true; cyl.Parent = workspace |
| 950 | local cuts = {} |
| 951 | local angBoxes = {} |
| 952 | do |
| 953 | local edgeDir = 1*rightV + 0*upV |
| 954 | local edgePerp = 0*rightV + 1*upV |
| 955 | local cut = Instance.new("Part") |
| 956 | cut.Size = Vector3.new(12, 0.7, 12) |
| 957 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 958 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 959 | cut.Material = Enum.Material.Glacier |
| 960 | cut.MaterialVariant = "2022 Stud" |
| 961 | cut.Anchored = true; cut.Parent = workspace |
| 962 | table.insert(angBoxes, cut) |
| 963 | end |
| 964 | do |
| 965 | local edgeDir = -1*rightV + 0*upV |
| 966 | local edgePerp = 0*rightV + -1*upV |
| 967 | local cut = Instance.new("Part") |
| 968 | cut.Size = Vector3.new(12, 0.7, 12) |
| 969 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 970 | cut.BrickColor = BrickColor.new("Cool yellow") |
| 971 | cut.Material = Enum.Material.Glacier |
| 972 | cut.MaterialVariant = "2022 Stud" |
| 973 | cut.Anchored = true; cut.Parent = workspace |
| 974 | table.insert(angBoxes, cut) |
| 975 | end |
| 976 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 977 | if #cuts > 0 then |
| 978 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 979 | for _, c in ipairs(cuts) do c:Destroy() end |
| 980 | if ok and result then |
| 981 | cyl:Destroy() |
| 982 | result.Name = "BowSail"; result.Anchored = true; result.Parent = model |
| 983 | else |
| 984 | cyl.Name = "BowSail"; cyl.Parent = model |
| 985 | end |
| 986 | else |
| 987 | cyl.Name = "BowSail"; cyl.Parent = model |
| 988 | end |
| 989 | end |
| 990 | model.PrimaryPart = model:FindFirstChild("HullMid") |
| 991 | print("GalleonShip built: " .. #model:GetChildren() .. " parts") |
Loading comments...