Loading model...
by bannedsami · 10/5/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PirateEgg |
| 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 = "PirateEgg" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Stud", |
| 25 | ["Gold"] = "2022 Stud", |
| 26 | ["Hot pink"] = "2022 Stud", |
| 27 | ["Lapis"] = "2022 Stud", |
| 28 | ["Magenta"] = "2022 Stud", |
| 29 | ["Medium stone grey"] = "2022 Inlet", |
| 30 | ["Really black"] = "2022 Universal", |
| 31 | } |
| 32 | do |
| 33 | local p = Instance.new("Part") |
| 34 | p.Shape = Enum.PartType.Cylinder |
| 35 | p.Name = "EggBase" |
| 36 | p.Size = Vector3.new(3, 6, 6) |
| 37 | p.CFrame = CFrame.new(0, 1.46, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 38 | p.BrickColor = BrickColor.new("Lapis") |
| 39 | p.Material = Enum.Material.Glacier |
| 40 | p.MaterialVariant = "2022 Stud" |
| 41 | p.Anchored = true |
| 42 | p.Parent = model |
| 43 | end |
| 44 | do |
| 45 | local p = Instance.new("Part") |
| 46 | p.Shape = Enum.PartType.Cylinder |
| 47 | p.Name = "EggMid1" |
| 48 | p.Size = Vector3.new(3, 6.5, 6.5) |
| 49 | p.CFrame = CFrame.new(0, 4.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 50 | p.BrickColor = BrickColor.new("Lapis") |
| 51 | p.Material = Enum.Material.Glacier |
| 52 | p.MaterialVariant = "2022 Stud" |
| 53 | p.Anchored = true |
| 54 | p.Parent = model |
| 55 | end |
| 56 | do |
| 57 | local p = Instance.new("Part") |
| 58 | p.Shape = Enum.PartType.Cylinder |
| 59 | p.Name = "EggMid2" |
| 60 | p.Size = Vector3.new(3, 5.5, 5.5) |
| 61 | p.CFrame = CFrame.new(0, 7.54, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 62 | p.BrickColor = BrickColor.new("Lapis") |
| 63 | p.Material = Enum.Material.Glacier |
| 64 | p.MaterialVariant = "2022 Stud" |
| 65 | p.Anchored = true |
| 66 | p.Parent = model |
| 67 | end |
| 68 | do |
| 69 | local p = Instance.new("Part") |
| 70 | p.Shape = Enum.PartType.Cylinder |
| 71 | p.Name = "EggTop" |
| 72 | p.Size = Vector3.new(2, 4, 4) |
| 73 | p.CFrame = CFrame.new(0, 10.08, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 74 | p.BrickColor = BrickColor.new("Lapis") |
| 75 | p.Material = Enum.Material.Glacier |
| 76 | p.MaterialVariant = "2022 Stud" |
| 77 | p.Anchored = true |
| 78 | p.Parent = model |
| 79 | end |
| 80 | do |
| 81 | local p = Instance.new("Part") |
| 82 | p.Shape = Enum.PartType.Cylinder |
| 83 | p.Name = "EggTip" |
| 84 | p.Size = Vector3.new(1, 2.5, 2.5) |
| 85 | p.CFrame = CFrame.new(0, 11.62, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 86 | p.BrickColor = BrickColor.new("Lapis") |
| 87 | p.Material = Enum.Material.Glacier |
| 88 | p.MaterialVariant = "2022 Stud" |
| 89 | p.Anchored = true |
| 90 | p.Parent = model |
| 91 | end |
| 92 | do |
| 93 | local p = Instance.new("Part") |
| 94 | p.Shape = Enum.PartType.Cylinder |
| 95 | p.Name = "BandHoriz" |
| 96 | p.Size = Vector3.new(1.2, 6.7, 6.7) |
| 97 | p.CFrame = CFrame.new(0, 5.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 98 | p.BrickColor = BrickColor.new("Gold") |
| 99 | p.Material = Enum.Material.Glacier |
| 100 | p.MaterialVariant = "2022 Stud" |
| 101 | p.Anchored = true |
| 102 | p.Parent = model |
| 103 | end |
| 104 | do |
| 105 | local p = Instance.new("Part") |
| 106 | p.Name = "BandVertFB" |
| 107 | p.Size = Vector3.new(1.2, 12, 6.6) |
| 108 | p.CFrame = CFrame.new(0, 5.5, 0) |
| 109 | p.BrickColor = BrickColor.new("Gold") |
| 110 | p.Material = Enum.Material.Glacier |
| 111 | p.MaterialVariant = "2022 Stud" |
| 112 | p.Anchored = true |
| 113 | p.Parent = model |
| 114 | end |
| 115 | do |
| 116 | local p = Instance.new("Part") |
| 117 | p.Name = "BandVertLR" |
| 118 | p.Size = Vector3.new(6.6, 12, 1.2) |
| 119 | p.CFrame = CFrame.new(0, 5.54, 0) |
| 120 | p.BrickColor = BrickColor.new("Gold") |
| 121 | p.Material = Enum.Material.Glacier |
| 122 | p.MaterialVariant = "2022 Stud" |
| 123 | p.Anchored = true |
| 124 | p.Parent = model |
| 125 | end |
| 126 | do |
| 127 | local p = Instance.new("Part") |
| 128 | p.Shape = Enum.PartType.Cylinder |
| 129 | p.Name = "EmblemDisc" |
| 130 | p.Size = Vector3.new(0.4, 3.8, 3.8) |
| 131 | p.CFrame = CFrame.new(0, 5.5, -3.35) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 132 | p.BrickColor = BrickColor.new("Gold") |
| 133 | p.Material = Enum.Material.Glacier |
| 134 | p.MaterialVariant = "2022 Stud" |
| 135 | p.Anchored = true |
| 136 | p.Parent = model |
| 137 | end |
| 138 | do |
| 139 | local p = Instance.new("Part") |
| 140 | p.Shape = Enum.PartType.Cylinder |
| 141 | p.Name = "EmblemInner" |
| 142 | p.Size = Vector3.new(0.4, 2.8, 2.8) |
| 143 | p.CFrame = CFrame.new(0, 5.5, -3.45) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 144 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Stud" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Name = "SkullTop" |
| 153 | p.Size = Vector3.new(1.6, 1.2, 0.4) |
| 154 | p.CFrame = CFrame.new(0, 5.8, -3.65) |
| 155 | p.BrickColor = BrickColor.new("Gold") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Stud" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Name = "SkullJaw" |
| 164 | p.Size = Vector3.new(1, 0.8, 0.4) |
| 165 | p.CFrame = CFrame.new(0, 5, -3.61) |
| 166 | p.BrickColor = BrickColor.new("Gold") |
| 167 | p.Material = Enum.Material.Glacier |
| 168 | p.MaterialVariant = "2022 Stud" |
| 169 | p.Anchored = true |
| 170 | p.Parent = model |
| 171 | end |
| 172 | do |
| 173 | local p = Instance.new("Part") |
| 174 | p.Shape = Enum.PartType.Cylinder |
| 175 | p.Name = "EyeL" |
| 176 | p.Size = Vector3.new(0.2, 0.5, 0.5) |
| 177 | p.CFrame = CFrame.new(-0.4, 5.8, -3.83) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 178 | p.BrickColor = BrickColor.new("Really black") |
| 179 | p.Material = Enum.Material.Glacier |
| 180 | p.MaterialVariant = "2022 Universal" |
| 181 | p.Anchored = true |
| 182 | p.Parent = model |
| 183 | end |
| 184 | do |
| 185 | local p = Instance.new("Part") |
| 186 | p.Shape = Enum.PartType.Cylinder |
| 187 | p.Name = "EyeR" |
| 188 | p.Size = Vector3.new(0.2, 0.5, 0.5) |
| 189 | p.CFrame = CFrame.new(0.4, 5.8, -3.83) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 190 | p.BrickColor = BrickColor.new("Really black") |
| 191 | p.Material = Enum.Material.Glacier |
| 192 | p.MaterialVariant = "2022 Universal" |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Name = "Nose" |
| 199 | p.Size = Vector3.new(0.2, 0.2, 0.2) |
| 200 | p.CFrame = CFrame.new(0, 5.4, -3.79) |
| 201 | p.BrickColor = BrickColor.new("Really black") |
| 202 | p.Material = Enum.Material.Glacier |
| 203 | p.MaterialVariant = "2022 Universal" |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Name = "SpikeTop" |
| 210 | p.Size = Vector3.new(0.8, 0.8, 0.4) |
| 211 | p.CFrame = CFrame.new(0, 7.4, -3.31) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 212 | p.BrickColor = BrickColor.new("Gold") |
| 213 | p.Material = Enum.Material.Glacier |
| 214 | p.MaterialVariant = "2022 Stud" |
| 215 | p.Anchored = true |
| 216 | p.Parent = model |
| 217 | end |
| 218 | do |
| 219 | local p = Instance.new("Part") |
| 220 | p.Name = "SpikeBot" |
| 221 | p.Size = Vector3.new(0.8, 0.8, 0.4) |
| 222 | p.CFrame = CFrame.new(0, 3.6, -3.31) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 223 | p.BrickColor = BrickColor.new("Gold") |
| 224 | p.Material = Enum.Material.Glacier |
| 225 | p.MaterialVariant = "2022 Stud" |
| 226 | p.Anchored = true |
| 227 | p.Parent = model |
| 228 | end |
| 229 | do |
| 230 | local p = Instance.new("Part") |
| 231 | p.Name = "SpikeL" |
| 232 | p.Size = Vector3.new(0.8, 0.8, 0.4) |
| 233 | p.CFrame = CFrame.new(-1.9, 5.5, -3.27) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 234 | p.BrickColor = BrickColor.new("Gold") |
| 235 | p.Material = Enum.Material.Glacier |
| 236 | p.MaterialVariant = "2022 Stud" |
| 237 | p.Anchored = true |
| 238 | p.Parent = model |
| 239 | end |
| 240 | do |
| 241 | local p = Instance.new("Part") |
| 242 | p.Name = "SpikeR" |
| 243 | p.Size = Vector3.new(0.8, 0.8, 0.4) |
| 244 | p.CFrame = CFrame.new(1.9, 5.5, -3.27) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 245 | p.BrickColor = BrickColor.new("Gold") |
| 246 | p.Material = Enum.Material.Glacier |
| 247 | p.MaterialVariant = "2022 Stud" |
| 248 | p.Anchored = true |
| 249 | p.Parent = model |
| 250 | end |
| 251 | do |
| 252 | local p = Instance.new("Part") |
| 253 | p.Name = "GemTopBase" |
| 254 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 255 | p.CFrame = CFrame.new(0, 11.8, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(45)) |
| 256 | p.BrickColor = BrickColor.new("Gold") |
| 257 | p.Material = Enum.Material.Glacier |
| 258 | p.MaterialVariant = "2022 Stud" |
| 259 | p.Anchored = true |
| 260 | p.Parent = model |
| 261 | end |
| 262 | do |
| 263 | local p = Instance.new("Part") |
| 264 | p.Name = "GemTop" |
| 265 | p.Size = Vector3.new(1.4, 1.4, 1.4) |
| 266 | p.CFrame = CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(45)) |
| 267 | p.BrickColor = BrickColor.new("Toothpaste") |
| 268 | p.Material = Enum.Material.Neon |
| 269 | p.Anchored = true |
| 270 | p.Parent = model |
| 271 | end |
| 272 | do |
| 273 | local p = Instance.new("Part") |
| 274 | p.Name = "GemLeft" |
| 275 | p.Size = Vector3.new(0.6, 1.5, 1.5) |
| 276 | p.CFrame = CFrame.new(-3.4, 5.5, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 277 | p.BrickColor = BrickColor.new("Toothpaste") |
| 278 | p.Material = Enum.Material.Neon |
| 279 | p.Anchored = true |
| 280 | p.Parent = model |
| 281 | end |
| 282 | do |
| 283 | local p = Instance.new("Part") |
| 284 | p.Name = "GemRight" |
| 285 | p.Size = Vector3.new(0.6, 1.5, 1.5) |
| 286 | p.CFrame = CFrame.new(3.4, 5.5, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 287 | p.BrickColor = BrickColor.new("Toothpaste") |
| 288 | p.Material = Enum.Material.Neon |
| 289 | p.Anchored = true |
| 290 | p.Parent = model |
| 291 | end |
| 292 | do |
| 293 | local p = Instance.new("Part") |
| 294 | p.Shape = Enum.PartType.Cylinder |
| 295 | p.Name = "AnchorRing" |
| 296 | p.Size = Vector3.new(0.3, 1, 1) |
| 297 | p.CFrame = CFrame.new(4.5, 5.5, -0.04) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 298 | p.BrickColor = BrickColor.new("Gold") |
| 299 | p.Material = Enum.Material.Glacier |
| 300 | p.MaterialVariant = "2022 Stud" |
| 301 | p.Anchored = true |
| 302 | p.Parent = model |
| 303 | end |
| 304 | do |
| 305 | local p = Instance.new("Part") |
| 306 | p.Name = "AnchorShank" |
| 307 | p.Size = Vector3.new(0.4, 3, 0.4) |
| 308 | p.CFrame = CFrame.new(4.5, 4, 0.04) |
| 309 | p.BrickColor = BrickColor.new("Gold") |
| 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.Name = "AnchorCross" |
| 318 | p.Size = Vector3.new(2, 0.4, 0.4) |
| 319 | p.CFrame = CFrame.new(4.5, 4.8, 0.08) |
| 320 | p.BrickColor = BrickColor.new("Gold") |
| 321 | p.Material = Enum.Material.Glacier |
| 322 | p.MaterialVariant = "2022 Stud" |
| 323 | p.Anchored = true |
| 324 | p.Parent = model |
| 325 | end |
| 326 | do |
| 327 | local p = Instance.new("Part") |
| 328 | p.Name = "AnchorFlukeL" |
| 329 | p.Size = Vector3.new(0.8, 0.8, 0.5) |
| 330 | p.CFrame = CFrame.new(2.9, 3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 331 | p.BrickColor = BrickColor.new("Gold") |
| 332 | p.Material = Enum.Material.Glacier |
| 333 | p.MaterialVariant = "2022 Stud" |
| 334 | p.Anchored = true |
| 335 | p.Parent = model |
| 336 | end |
| 337 | do |
| 338 | local p = Instance.new("Part") |
| 339 | p.Name = "AnchorFlukeR" |
| 340 | p.Size = Vector3.new(0.8, 0.8, 0.5) |
| 341 | p.CFrame = CFrame.new(6.1, 3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 342 | p.BrickColor = BrickColor.new("Gold") |
| 343 | p.Material = Enum.Material.Glacier |
| 344 | p.MaterialVariant = "2022 Stud" |
| 345 | p.Anchored = true |
| 346 | p.Parent = model |
| 347 | end |
| 348 | do |
| 349 | local p = Instance.new("Part") |
| 350 | p.Shape = Enum.PartType.Cylinder |
| 351 | p.Name = "Coral1" |
| 352 | p.Size = Vector3.new(2.34521, 0.6, 0.6) |
| 353 | p.CFrame = CFrame.new(-3.75, 1.75, 0.5) * CFrame.Angles(math.rad(-180), math.rad(-33.6901), math.rad(-140.238)) |
| 354 | p.BrickColor = BrickColor.new("Hot pink") |
| 355 | p.Material = Enum.Material.Glacier |
| 356 | p.MaterialVariant = "2022 Stud" |
| 357 | p.Anchored = true |
| 358 | p.Parent = model |
| 359 | end |
| 360 | do |
| 361 | local p = Instance.new("Part") |
| 362 | p.Shape = Enum.PartType.Cylinder |
| 363 | p.Name = "Coral2" |
| 364 | p.Size = Vector3.new(2.0347, 0.5, 0.5) |
| 365 | p.CFrame = CFrame.new(-4.3, 2.65, 0.25) * CFrame.Angles(math.rad(-180), math.rad(26.5651), math.rad(-123.332)) |
| 366 | p.BrickColor = BrickColor.new("Hot pink") |
| 367 | p.Material = Enum.Material.Glacier |
| 368 | p.MaterialVariant = "2022 Stud" |
| 369 | p.Anchored = true |
| 370 | p.Parent = model |
| 371 | end |
| 372 | do |
| 373 | local p = Instance.new("Part") |
| 374 | p.Shape = Enum.PartType.Cylinder |
| 375 | p.Name = "Coral3" |
| 376 | p.Size = Vector3.new(2.06155, 0.7, 0.7) |
| 377 | p.CFrame = CFrame.new(-3.25, 1.5, -2) * CFrame.Angles(math.rad(-180), math.rad(33.6901), math.rad(-150.983)) |
| 378 | p.BrickColor = BrickColor.new("Magenta") |
| 379 | p.Material = Enum.Material.Glacier |
| 380 | p.MaterialVariant = "2022 Stud" |
| 381 | p.Anchored = true |
| 382 | p.Parent = model |
| 383 | end |
| 384 | do |
| 385 | local p = Instance.new("Part") |
| 386 | p.Shape = Enum.PartType.Cylinder |
| 387 | p.Name = "Coral4" |
| 388 | p.Size = Vector3.new(1.82757, 0.5, 0.5) |
| 389 | p.CFrame = CFrame.new(-3.35, 2.25, -2.5) * CFrame.Angles(math.rad(-180), math.rad(73.3008), math.rad(-124.839)) |
| 390 | p.BrickColor = BrickColor.new("Magenta") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Stud" |
| 393 | p.Anchored = true |
| 394 | p.Parent = model |
| 395 | end |
| 396 | do |
| 397 | local p = Instance.new("Part") |
| 398 | p.Name = "Rock_0" |
| 399 | p.Size = Vector3.new(1.5, 1.2, 1.5) |
| 400 | p.CFrame = CFrame.new(-2.5, 0.5, -2) |
| 401 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 402 | p.Material = Enum.Material.Glacier |
| 403 | p.MaterialVariant = "2022 Stud" |
| 404 | p.Anchored = true |
| 405 | p.Parent = model |
| 406 | end |
| 407 | do |
| 408 | local p = Instance.new("Part") |
| 409 | p.Name = "Rock_1" |
| 410 | p.Size = Vector3.new(2, 1.5, 2) |
| 411 | p.CFrame = CFrame.new(-1.5, 0.6, -3) * CFrame.Angles(math.rad(15), math.rad(45), math.rad(20)) |
| 412 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 413 | p.Material = Enum.Material.Glacier |
| 414 | p.MaterialVariant = "2022 Inlet" |
| 415 | p.Anchored = true |
| 416 | p.Parent = model |
| 417 | end |
| 418 | do |
| 419 | local p = Instance.new("Part") |
| 420 | p.Name = "Rock_2" |
| 421 | p.Size = Vector3.new(1.5, 1.8, 1.5) |
| 422 | p.CFrame = CFrame.new(1.5, 0.4, -2.8) * CFrame.Angles(math.rad(30), math.rad(90), math.rad(40)) |
| 423 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 424 | p.Material = Enum.Material.Glacier |
| 425 | p.MaterialVariant = "2022 Stud" |
| 426 | p.Anchored = true |
| 427 | p.Parent = model |
| 428 | end |
| 429 | do |
| 430 | local p = Instance.new("Part") |
| 431 | p.Name = "Rock_3" |
| 432 | p.Size = Vector3.new(2, 1.2, 2) |
| 433 | p.CFrame = CFrame.new(2.5, 0.7, -1.5) * CFrame.Angles(math.rad(45), math.rad(135), math.rad(60)) |
| 434 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 435 | p.Material = Enum.Material.Glacier |
| 436 | p.MaterialVariant = "2022 Inlet" |
| 437 | p.Anchored = true |
| 438 | p.Parent = model |
| 439 | end |
| 440 | do |
| 441 | local p = Instance.new("Part") |
| 442 | p.Name = "Rock_4" |
| 443 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 444 | p.CFrame = CFrame.new(-2, 0.5, 2.5) * CFrame.Angles(math.rad(60), math.rad(180), math.rad(80)) |
| 445 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 446 | p.Material = Enum.Material.Glacier |
| 447 | p.MaterialVariant = "2022 Stud" |
| 448 | p.Anchored = true |
| 449 | p.Parent = model |
| 450 | end |
| 451 | do |
| 452 | local p = Instance.new("Part") |
| 453 | p.Name = "Rock_5" |
| 454 | p.Size = Vector3.new(2, 1.8, 2) |
| 455 | p.CFrame = CFrame.new(2, 0.6, 2) * CFrame.Angles(math.rad(75), math.rad(225), math.rad(100)) |
| 456 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 457 | p.Material = Enum.Material.Glacier |
| 458 | p.MaterialVariant = "2022 Inlet" |
| 459 | p.Anchored = true |
| 460 | p.Parent = model |
| 461 | end |
| 462 | do |
| 463 | local p = Instance.new("Part") |
| 464 | p.Name = "Rock_6" |
| 465 | p.Size = Vector3.new(1.5, 1.2, 1.5) |
| 466 | p.CFrame = CFrame.new(0, 0.4, 3) * CFrame.Angles(math.rad(90), math.rad(270), math.rad(120)) |
| 467 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 468 | p.Material = Enum.Material.Glacier |
| 469 | p.MaterialVariant = "2022 Stud" |
| 470 | p.Anchored = true |
| 471 | p.Parent = model |
| 472 | end |
| 473 | do |
| 474 | local p = Instance.new("Part") |
| 475 | p.Name = "Rock_7" |
| 476 | p.Size = Vector3.new(2, 1.5, 2) |
| 477 | p.CFrame = CFrame.new(0, 0.3, -3.5) * CFrame.Angles(math.rad(105), math.rad(315), math.rad(140)) |
| 478 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 479 | p.Material = Enum.Material.Glacier |
| 480 | p.MaterialVariant = "2022 Inlet" |
| 481 | p.Anchored = true |
| 482 | p.Parent = model |
| 483 | end |
| 484 | do |
| 485 | local p = Instance.new("Part") |
| 486 | p.Shape = Enum.PartType.Cylinder |
| 487 | p.Name = "Coin_0" |
| 488 | p.Size = Vector3.new(0.2, 0.88, 0.88) |
| 489 | p.CFrame = CFrame.new(-1, 0.2, -3.2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 490 | p.BrickColor = BrickColor.new("Gold") |
| 491 | p.Material = Enum.Material.Glacier |
| 492 | p.MaterialVariant = "2022 Stud" |
| 493 | p.Anchored = true |
| 494 | p.Parent = model |
| 495 | end |
| 496 | do |
| 497 | local p = Instance.new("Part") |
| 498 | p.Shape = Enum.PartType.Cylinder |
| 499 | p.Name = "Coin_1" |
| 500 | p.Size = Vector3.new(0.2, 0.92, 0.92) |
| 501 | p.CFrame = CFrame.new(-0.5, 0.4, -3.4) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(90)) |
| 502 | p.BrickColor = BrickColor.new("Gold") |
| 503 | p.Material = Enum.Material.Glacier |
| 504 | p.MaterialVariant = "2022 Stud" |
| 505 | p.Anchored = true |
| 506 | p.Parent = model |
| 507 | end |
| 508 | do |
| 509 | local p = Instance.new("Part") |
| 510 | p.Shape = Enum.PartType.Cylinder |
| 511 | p.Name = "Coin_2" |
| 512 | p.Size = Vector3.new(0.2, 0.92, 0.92) |
| 513 | p.CFrame = CFrame.new(0.8, 0.2, -3.3) * CFrame.Angles(math.rad(20), math.rad(60), math.rad(90)) |
| 514 | p.BrickColor = BrickColor.new("Gold") |
| 515 | p.Material = Enum.Material.Glacier |
| 516 | p.MaterialVariant = "2022 Stud" |
| 517 | p.Anchored = true |
| 518 | p.Parent = model |
| 519 | end |
| 520 | do |
| 521 | local p = Instance.new("Part") |
| 522 | p.Shape = Enum.PartType.Cylinder |
| 523 | p.Name = "Coin_3" |
| 524 | p.Size = Vector3.new(0.2, 0.96, 0.96) |
| 525 | p.CFrame = CFrame.new(1.2, 0.5, -3) * CFrame.Angles(math.rad(30), math.rad(90), math.rad(90)) |
| 526 | p.BrickColor = BrickColor.new("Gold") |
| 527 | p.Material = Enum.Material.Glacier |
| 528 | p.MaterialVariant = "2022 Stud" |
| 529 | p.Anchored = true |
| 530 | p.Parent = model |
| 531 | end |
| 532 | do |
| 533 | local p = Instance.new("Part") |
| 534 | p.Shape = Enum.PartType.Cylinder |
| 535 | p.Name = "Coin_4" |
| 536 | p.Size = Vector3.new(0.2, 1, 1) |
| 537 | p.CFrame = CFrame.new(2, 0.2, -2) * CFrame.Angles(math.rad(40), math.rad(120), math.rad(90)) |
| 538 | p.BrickColor = BrickColor.new("Gold") |
| 539 | p.Material = Enum.Material.Glacier |
| 540 | p.MaterialVariant = "2022 Stud" |
| 541 | p.Anchored = true |
| 542 | p.Parent = model |
| 543 | end |
| 544 | do |
| 545 | local p = Instance.new("Part") |
| 546 | p.Shape = Enum.PartType.Cylinder |
| 547 | p.Name = "Coin_5" |
| 548 | p.Size = Vector3.new(0.2, 1, 1) |
| 549 | p.CFrame = CFrame.new(-2, 0.3, -1.5) * CFrame.Angles(math.rad(50), math.rad(150), math.rad(90)) |
| 550 | p.BrickColor = BrickColor.new("Gold") |
| 551 | p.Material = Enum.Material.Glacier |
| 552 | p.MaterialVariant = "2022 Stud" |
| 553 | p.Anchored = true |
| 554 | p.Parent = model |
| 555 | end |
| 556 | do |
| 557 | local p = Instance.new("Part") |
| 558 | p.Shape = Enum.PartType.Cylinder |
| 559 | p.Name = "Coin_6" |
| 560 | p.Size = Vector3.new(0.2, 1, 1) |
| 561 | p.CFrame = CFrame.new(-1.5, 0.2, 3) * CFrame.Angles(math.rad(60), math.rad(180), math.rad(90)) |
| 562 | p.BrickColor = BrickColor.new("Gold") |
| 563 | p.Material = Enum.Material.Glacier |
| 564 | p.MaterialVariant = "2022 Stud" |
| 565 | p.Anchored = true |
| 566 | p.Parent = model |
| 567 | end |
| 568 | do |
| 569 | local p = Instance.new("Part") |
| 570 | p.Shape = Enum.PartType.Cylinder |
| 571 | p.Name = "Coin_7" |
| 572 | p.Size = Vector3.new(0.2, 1, 1) |
| 573 | p.CFrame = CFrame.new(1.5, 0.3, 2.8) * CFrame.Angles(math.rad(70), math.rad(210), math.rad(90)) |
| 574 | p.BrickColor = BrickColor.new("Gold") |
| 575 | p.Material = Enum.Material.Glacier |
| 576 | p.MaterialVariant = "2022 Stud" |
| 577 | p.Anchored = true |
| 578 | p.Parent = model |
| 579 | end |
| 580 | do |
| 581 | local rightV = Vector3.new(1,0,0).Unit |
| 582 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 583 | local normalV = upV:Cross(rightV) |
| 584 | local pos = Vector3.new(2.5, 9, 0.54) |
| 585 | local cyl = Instance.new("Part") |
| 586 | cyl.Shape = Enum.PartType.Cylinder |
| 587 | cyl.Size = Vector3.new(0.2, 1.4, 1.4) |
| 588 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 589 | cyl.BrickColor = BrickColor.new("Gold") |
| 590 | cyl.Material = Enum.Material.Glacier |
| 591 | cyl.MaterialVariant = "2022 Stud" |
| 592 | cyl.Anchored = true; cyl.Parent = workspace |
| 593 | local cuts = {} |
| 594 | local hole = Instance.new("Part") |
| 595 | hole.Shape = Enum.PartType.Cylinder |
| 596 | hole.Size = Vector3.new(0.4, 0.8, 0.8) |
| 597 | hole.CFrame = cyl.CFrame |
| 598 | hole.BrickColor = BrickColor.new("Gold") |
| 599 | hole.Material = Enum.Material.Glacier |
| 600 | hole.MaterialVariant = "2022 Stud" |
| 601 | hole.Anchored = true; hole.Parent = workspace |
| 602 | table.insert(cuts, hole) |
| 603 | if #cuts > 0 then |
| 604 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 605 | for _, c in ipairs(cuts) do c:Destroy() end |
| 606 | if ok and result then |
| 607 | cyl:Destroy() |
| 608 | result.Name = "Chain1"; result.Anchored = true; result.Parent = model |
| 609 | else |
| 610 | cyl.Name = "Chain1"; cyl.Parent = model |
| 611 | end |
| 612 | else |
| 613 | cyl.Name = "Chain1"; cyl.Parent = model |
| 614 | end |
| 615 | end |
| 616 | do |
| 617 | local rightV = Vector3.new(0,1,0).Unit |
| 618 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 619 | local normalV = upV:Cross(rightV) |
| 620 | local pos = Vector3.new(3, 8, 0.5) |
| 621 | local cyl = Instance.new("Part") |
| 622 | cyl.Shape = Enum.PartType.Cylinder |
| 623 | cyl.Size = Vector3.new(0.2, 1.4, 1.4) |
| 624 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 625 | cyl.BrickColor = BrickColor.new("Gold") |
| 626 | cyl.Material = Enum.Material.Glacier |
| 627 | cyl.MaterialVariant = "2022 Stud" |
| 628 | cyl.Anchored = true; cyl.Parent = workspace |
| 629 | local cuts = {} |
| 630 | local hole = Instance.new("Part") |
| 631 | hole.Shape = Enum.PartType.Cylinder |
| 632 | hole.Size = Vector3.new(0.4, 0.8, 0.8) |
| 633 | hole.CFrame = cyl.CFrame |
| 634 | hole.BrickColor = BrickColor.new("Gold") |
| 635 | hole.Material = Enum.Material.Glacier |
| 636 | hole.MaterialVariant = "2022 Stud" |
| 637 | hole.Anchored = true; hole.Parent = workspace |
| 638 | table.insert(cuts, hole) |
| 639 | if #cuts > 0 then |
| 640 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 641 | for _, c in ipairs(cuts) do c:Destroy() end |
| 642 | if ok and result then |
| 643 | cyl:Destroy() |
| 644 | result.Name = "Chain2"; result.Anchored = true; result.Parent = model |
| 645 | else |
| 646 | cyl.Name = "Chain2"; cyl.Parent = model |
| 647 | end |
| 648 | else |
| 649 | cyl.Name = "Chain2"; cyl.Parent = model |
| 650 | end |
| 651 | end |
| 652 | do |
| 653 | local rightV = Vector3.new(1,0,0).Unit |
| 654 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 655 | local normalV = upV:Cross(rightV) |
| 656 | local pos = Vector3.new(3.5, 7, 0.54) |
| 657 | local cyl = Instance.new("Part") |
| 658 | cyl.Shape = Enum.PartType.Cylinder |
| 659 | cyl.Size = Vector3.new(0.2, 1.4, 1.4) |
| 660 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 661 | cyl.BrickColor = BrickColor.new("Gold") |
| 662 | cyl.Material = Enum.Material.Glacier |
| 663 | cyl.MaterialVariant = "2022 Stud" |
| 664 | cyl.Anchored = true; cyl.Parent = workspace |
| 665 | local cuts = {} |
| 666 | local hole = Instance.new("Part") |
| 667 | hole.Shape = Enum.PartType.Cylinder |
| 668 | hole.Size = Vector3.new(0.4, 0.8, 0.8) |
| 669 | hole.CFrame = cyl.CFrame |
| 670 | hole.BrickColor = BrickColor.new("Gold") |
| 671 | hole.Material = Enum.Material.Glacier |
| 672 | hole.MaterialVariant = "2022 Stud" |
| 673 | hole.Anchored = true; hole.Parent = workspace |
| 674 | table.insert(cuts, hole) |
| 675 | if #cuts > 0 then |
| 676 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 677 | for _, c in ipairs(cuts) do c:Destroy() end |
| 678 | if ok and result then |
| 679 | cyl:Destroy() |
| 680 | result.Name = "Chain3"; result.Anchored = true; result.Parent = model |
| 681 | else |
| 682 | cyl.Name = "Chain3"; cyl.Parent = model |
| 683 | end |
| 684 | else |
| 685 | cyl.Name = "Chain3"; cyl.Parent = model |
| 686 | end |
| 687 | end |
| 688 | do |
| 689 | local rightV = Vector3.new(0,1,0).Unit |
| 690 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 691 | local normalV = upV:Cross(rightV) |
| 692 | local pos = Vector3.new(3.84, 5.8, 0.5) |
| 693 | local cyl = Instance.new("Part") |
| 694 | cyl.Shape = Enum.PartType.Cylinder |
| 695 | cyl.Size = Vector3.new(0.2, 1.4, 1.4) |
| 696 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 697 | cyl.BrickColor = BrickColor.new("Gold") |
| 698 | cyl.Material = Enum.Material.Glacier |
| 699 | cyl.MaterialVariant = "2022 Stud" |
| 700 | cyl.Anchored = true; cyl.Parent = workspace |
| 701 | local cuts = {} |
| 702 | local hole = Instance.new("Part") |
| 703 | hole.Shape = Enum.PartType.Cylinder |
| 704 | hole.Size = Vector3.new(0.4, 0.8, 0.8) |
| 705 | hole.CFrame = cyl.CFrame |
| 706 | hole.BrickColor = BrickColor.new("Gold") |
| 707 | hole.Material = Enum.Material.Glacier |
| 708 | hole.MaterialVariant = "2022 Stud" |
| 709 | hole.Anchored = true; hole.Parent = workspace |
| 710 | table.insert(cuts, hole) |
| 711 | if #cuts > 0 then |
| 712 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 713 | for _, c in ipairs(cuts) do c:Destroy() end |
| 714 | if ok and result then |
| 715 | cyl:Destroy() |
| 716 | result.Name = "Chain4"; result.Anchored = true; result.Parent = model |
| 717 | else |
| 718 | cyl.Name = "Chain4"; cyl.Parent = model |
| 719 | end |
| 720 | else |
| 721 | cyl.Name = "Chain4"; cyl.Parent = model |
| 722 | end |
| 723 | end |
| 724 | do |
| 725 | local rightV = Vector3.new(1,0,0).Unit |
| 726 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 727 | local normalV = upV:Cross(rightV) |
| 728 | local pos = Vector3.new(4.5, 3.04, 0) |
| 729 | local cyl = Instance.new("Part") |
| 730 | cyl.Shape = Enum.PartType.Cylinder |
| 731 | cyl.Size = Vector3.new(0.4, 3.2, 3.2) |
| 732 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 733 | cyl.BrickColor = BrickColor.new("Gold") |
| 734 | cyl.Material = Enum.Material.Glacier |
| 735 | cyl.MaterialVariant = "2022 Stud" |
| 736 | cyl.Anchored = true; cyl.Parent = workspace |
| 737 | local cuts = {} |
| 738 | local hole = Instance.new("Part") |
| 739 | hole.Shape = Enum.PartType.Cylinder |
| 740 | hole.Size = Vector3.new(0.6, 2.4, 2.4) |
| 741 | hole.CFrame = cyl.CFrame |
| 742 | hole.BrickColor = BrickColor.new("Gold") |
| 743 | hole.Material = Enum.Material.Glacier |
| 744 | hole.MaterialVariant = "2022 Stud" |
| 745 | hole.Anchored = true; hole.Parent = workspace |
| 746 | table.insert(cuts, hole) |
| 747 | local angBoxes = {} |
| 748 | do |
| 749 | local edgeDir = -1*rightV + 0*upV |
| 750 | local edgePerp = 0*rightV + -1*upV |
| 751 | local cut = Instance.new("Part") |
| 752 | cut.Size = Vector3.new(6.4, 0.6, 6.4) |
| 753 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.2 * edgePerp, edgeDir, normalV) |
| 754 | cut.BrickColor = BrickColor.new("Gold") |
| 755 | cut.Material = Enum.Material.Glacier |
| 756 | cut.MaterialVariant = "2022 Stud" |
| 757 | cut.Anchored = true; cut.Parent = workspace |
| 758 | table.insert(angBoxes, cut) |
| 759 | end |
| 760 | do |
| 761 | local edgeDir = 1*rightV + 0*upV |
| 762 | local edgePerp = 0*rightV + 1*upV |
| 763 | local cut = Instance.new("Part") |
| 764 | cut.Size = Vector3.new(6.4, 0.6, 6.4) |
| 765 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.2 * edgePerp, edgeDir, normalV) |
| 766 | cut.BrickColor = BrickColor.new("Gold") |
| 767 | cut.Material = Enum.Material.Glacier |
| 768 | cut.MaterialVariant = "2022 Stud" |
| 769 | cut.Anchored = true; cut.Parent = workspace |
| 770 | table.insert(angBoxes, cut) |
| 771 | end |
| 772 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 773 | if #cuts > 0 then |
| 774 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 775 | for _, c in ipairs(cuts) do c:Destroy() end |
| 776 | if ok and result then |
| 777 | cyl:Destroy() |
| 778 | result.Name = "AnchorHook"; result.Anchored = true; result.Parent = model |
| 779 | else |
| 780 | cyl.Name = "AnchorHook"; cyl.Parent = model |
| 781 | end |
| 782 | else |
| 783 | cyl.Name = "AnchorHook"; cyl.Parent = model |
| 784 | end |
| 785 | end |
| 786 | model.PrimaryPart = model:FindFirstChild("EggMid1") |
| 787 | print("PirateEgg built: " .. #model:GetChildren() .. " parts") |
Loading comments...