Loading model...
by sasa mia · 9/17/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: BlueDragon |
| 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 = "BlueDragon" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Brick yellow"] = "2022 Stud", |
| 25 | ["Bright blue"] = "2022 Universal", |
| 26 | ["Dark blue"] = "2022 Inlet", |
| 27 | ["Dark stone grey"] = "2022 Stud", |
| 28 | ["Gold"] = "2022 Stud", |
| 29 | ["Sand yellow"] = "2022 Small Stud", |
| 30 | } |
| 31 | do |
| 32 | local p = Instance.new("Part") |
| 33 | p.Name = "Gold_0" |
| 34 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 35 | p.CFrame = CFrame.new(4, 0.2, 0) |
| 36 | p.BrickColor = BrickColor.new("Gold") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Name = "Gold_1" |
| 45 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 46 | p.CFrame = CFrame.new(4.33013, 0.2, 2.5) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)) |
| 47 | p.BrickColor = BrickColor.new("Gold") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Name = "Gold_2" |
| 56 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 57 | p.CFrame = CFrame.new(3, 0.2, 5.19615) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(0)) |
| 58 | p.BrickColor = BrickColor.new("Gold") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Name = "Gold_3" |
| 67 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 68 | p.CFrame = CFrame.new(0, 0.2, 4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 69 | p.BrickColor = BrickColor.new("Gold") |
| 70 | p.Material = Enum.Material.Glacier |
| 71 | p.MaterialVariant = "2022 Stud" |
| 72 | p.Anchored = true |
| 73 | p.Parent = model |
| 74 | end |
| 75 | do |
| 76 | local p = Instance.new("Part") |
| 77 | p.Name = "Gold_4" |
| 78 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 79 | p.CFrame = CFrame.new(-2.5, 0.2, 4.33013) * CFrame.Angles(math.rad(0), math.rad(120), math.rad(0)) |
| 80 | p.BrickColor = BrickColor.new("Gold") |
| 81 | p.Material = Enum.Material.Glacier |
| 82 | p.MaterialVariant = "2022 Stud" |
| 83 | p.Anchored = true |
| 84 | p.Parent = model |
| 85 | end |
| 86 | do |
| 87 | local p = Instance.new("Part") |
| 88 | p.Name = "Gold_5" |
| 89 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 90 | p.CFrame = CFrame.new(-5.19615, 0.2, 3) * CFrame.Angles(math.rad(0), math.rad(150), math.rad(0)) |
| 91 | p.BrickColor = BrickColor.new("Gold") |
| 92 | p.Material = Enum.Material.Glacier |
| 93 | p.MaterialVariant = "2022 Stud" |
| 94 | p.Anchored = true |
| 95 | p.Parent = model |
| 96 | end |
| 97 | do |
| 98 | local p = Instance.new("Part") |
| 99 | p.Name = "Gold_6" |
| 100 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 101 | p.CFrame = CFrame.new(-4, 0.2, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 102 | p.BrickColor = BrickColor.new("Gold") |
| 103 | p.Material = Enum.Material.Glacier |
| 104 | p.MaterialVariant = "2022 Stud" |
| 105 | p.Anchored = true |
| 106 | p.Parent = model |
| 107 | end |
| 108 | do |
| 109 | local p = Instance.new("Part") |
| 110 | p.Name = "Gold_7" |
| 111 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 112 | p.CFrame = CFrame.new(-4.33013, 0.2, -2.5) * CFrame.Angles(math.rad(0), math.rad(210), math.rad(0)) |
| 113 | p.BrickColor = BrickColor.new("Gold") |
| 114 | p.Material = Enum.Material.Glacier |
| 115 | p.MaterialVariant = "2022 Stud" |
| 116 | p.Anchored = true |
| 117 | p.Parent = model |
| 118 | end |
| 119 | do |
| 120 | local p = Instance.new("Part") |
| 121 | p.Name = "Gold_8" |
| 122 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 123 | p.CFrame = CFrame.new(-3, 0.2, -5.19615) * CFrame.Angles(math.rad(0), math.rad(240), math.rad(0)) |
| 124 | p.BrickColor = BrickColor.new("Gold") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Stud" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Name = "Gold_9" |
| 133 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 134 | p.CFrame = CFrame.new(0, 0.2, -4) * CFrame.Angles(math.rad(0), math.rad(270), math.rad(0)) |
| 135 | p.BrickColor = BrickColor.new("Gold") |
| 136 | p.Material = Enum.Material.Glacier |
| 137 | p.MaterialVariant = "2022 Stud" |
| 138 | p.Anchored = true |
| 139 | p.Parent = model |
| 140 | end |
| 141 | do |
| 142 | local p = Instance.new("Part") |
| 143 | p.Name = "Gold_10" |
| 144 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 145 | p.CFrame = CFrame.new(2.5, 0.2, -4.33013) * CFrame.Angles(math.rad(0), math.rad(300), math.rad(0)) |
| 146 | p.BrickColor = BrickColor.new("Gold") |
| 147 | p.Material = Enum.Material.Glacier |
| 148 | p.MaterialVariant = "2022 Stud" |
| 149 | p.Anchored = true |
| 150 | p.Parent = model |
| 151 | end |
| 152 | do |
| 153 | local p = Instance.new("Part") |
| 154 | p.Name = "Gold_11" |
| 155 | p.Size = Vector3.new(2.5, 0.5, 2.5) |
| 156 | p.CFrame = CFrame.new(5.19615, 0.2, -3) * CFrame.Angles(math.rad(0), math.rad(330), math.rad(0)) |
| 157 | p.BrickColor = BrickColor.new("Gold") |
| 158 | p.Material = Enum.Material.Glacier |
| 159 | p.MaterialVariant = "2022 Stud" |
| 160 | p.Anchored = true |
| 161 | p.Parent = model |
| 162 | end |
| 163 | do |
| 164 | local p = Instance.new("Part") |
| 165 | p.Name = "TorsoMain" |
| 166 | p.Size = Vector3.new(4.5, 4, 5) |
| 167 | p.CFrame = CFrame.new(0, 4.5, 0) |
| 168 | p.BrickColor = BrickColor.new("Bright blue") |
| 169 | p.Material = Enum.Material.Glacier |
| 170 | p.MaterialVariant = "2022 Universal" |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Name = "TorsoFront" |
| 177 | p.Size = Vector3.new(4, 3.5, 2) |
| 178 | p.CFrame = CFrame.new(0, 5, -2.5) |
| 179 | p.BrickColor = BrickColor.new("Bright blue") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Universal" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Name = "TorsoBack" |
| 188 | p.Size = Vector3.new(3.5, 3, 2) |
| 189 | p.CFrame = CFrame.new(0, 3.96, 2.5) |
| 190 | p.BrickColor = BrickColor.new("Bright blue") |
| 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 = "Belly1" |
| 199 | p.Size = Vector3.new(3, 1.2, 1.5) |
| 200 | p.CFrame = CFrame.new(0, 3.5, -2) |
| 201 | p.BrickColor = BrickColor.new("Brick yellow") |
| 202 | p.Material = Enum.Material.Glacier |
| 203 | p.MaterialVariant = "2022 Stud" |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Name = "Belly2" |
| 210 | p.Size = Vector3.new(2.5, 2, 1) |
| 211 | p.CFrame = CFrame.new(0, 4, -3.2) |
| 212 | p.BrickColor = BrickColor.new("Brick yellow") |
| 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 = "Belly3" |
| 221 | p.Size = Vector3.new(2, 2, 0.8) |
| 222 | p.CFrame = CFrame.new(0, 5.5, -3.8) |
| 223 | p.BrickColor = BrickColor.new("Brick yellow") |
| 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 = "NeckBase" |
| 232 | p.Size = Vector3.new(2.5, 2.5, 2.5) |
| 233 | p.CFrame = CFrame.new(0, 7.5, -3.75) * CFrame.Angles(math.rad(53.1301), math.rad(90), math.rad(0)) |
| 234 | p.BrickColor = BrickColor.new("Bright blue") |
| 235 | p.Material = Enum.Material.Glacier |
| 236 | p.MaterialVariant = "2022 Universal" |
| 237 | p.Anchored = true |
| 238 | p.Parent = model |
| 239 | end |
| 240 | do |
| 241 | local p = Instance.new("Part") |
| 242 | p.Name = "NeckUpper" |
| 243 | p.Size = Vector3.new(1.41421, 2, 2) |
| 244 | p.CFrame = CFrame.new(0, 9, -5) * CFrame.Angles(math.rad(45), math.rad(90), math.rad(0)) |
| 245 | p.BrickColor = BrickColor.new("Bright blue") |
| 246 | p.Material = Enum.Material.Glacier |
| 247 | p.MaterialVariant = "2022 Universal" |
| 248 | p.Anchored = true |
| 249 | p.Parent = model |
| 250 | end |
| 251 | do |
| 252 | local p = Instance.new("Part") |
| 253 | p.Name = "HeadCore" |
| 254 | p.Size = Vector3.new(2.2, 2, 3) |
| 255 | p.CFrame = CFrame.new(0, 10, -6.5) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)) |
| 256 | p.BrickColor = BrickColor.new("Bright blue") |
| 257 | p.Material = Enum.Material.Glacier |
| 258 | p.MaterialVariant = "2022 Universal" |
| 259 | p.Anchored = true |
| 260 | p.Parent = model |
| 261 | end |
| 262 | do |
| 263 | local p = Instance.new("Part") |
| 264 | p.Name = "Snout" |
| 265 | p.Size = Vector3.new(1.5, 1.2, 2) |
| 266 | p.CFrame = CFrame.new(0, 9.8, -8) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)) |
| 267 | p.BrickColor = BrickColor.new("Bright blue") |
| 268 | p.Material = Enum.Material.Glacier |
| 269 | p.MaterialVariant = "2022 Universal" |
| 270 | p.Anchored = true |
| 271 | p.Parent = model |
| 272 | end |
| 273 | do |
| 274 | local p = Instance.new("Part") |
| 275 | p.Name = "Jaw" |
| 276 | p.Size = Vector3.new(1.4, 0.6, 2) |
| 277 | p.CFrame = CFrame.new(0, 9.2, -7.5) |
| 278 | p.BrickColor = BrickColor.new("Bright blue") |
| 279 | p.Material = Enum.Material.Glacier |
| 280 | p.MaterialVariant = "2022 Universal" |
| 281 | p.Anchored = true |
| 282 | p.Parent = model |
| 283 | end |
| 284 | do |
| 285 | local p = Instance.new("Part") |
| 286 | p.Name = "NoseHorn" |
| 287 | p.Size = Vector3.new(1.41421, 0.4, 0.4) |
| 288 | p.CFrame = CFrame.new(0, 11, -9) * CFrame.Angles(math.rad(45), math.rad(90), math.rad(0)) |
| 289 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 290 | p.Material = Enum.Material.Glacier |
| 291 | p.MaterialVariant = "2022 Stud" |
| 292 | p.Anchored = true |
| 293 | p.Parent = model |
| 294 | end |
| 295 | do |
| 296 | local p = Instance.new("Part") |
| 297 | p.Name = "HornL" |
| 298 | p.Size = Vector3.new(2.30868, 0.5, 0.5) |
| 299 | p.CFrame = CFrame.new(1.65, 11.4, -5.5) * CFrame.Angles(math.rad(0), math.rad(-30.4655), math.rad(31.3173)) |
| 300 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 301 | p.Material = Enum.Material.Glacier |
| 302 | p.MaterialVariant = "2022 Stud" |
| 303 | p.Anchored = true |
| 304 | p.Parent = model |
| 305 | end |
| 306 | do |
| 307 | local p = Instance.new("Part") |
| 308 | p.Name = "HornR" |
| 309 | p.Size = Vector3.new(2.30868, 0.5, 0.5) |
| 310 | p.CFrame = CFrame.new(-1.65, 11.4, -5.5) * CFrame.Angles(math.rad(-180), math.rad(-30.4655), math.rad(-148.683)) |
| 311 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 312 | p.Material = Enum.Material.Glacier |
| 313 | p.MaterialVariant = "2022 Stud" |
| 314 | p.Anchored = true |
| 315 | p.Parent = model |
| 316 | end |
| 317 | do |
| 318 | local p = Instance.new("Part") |
| 319 | p.Name = "EyeL" |
| 320 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 321 | p.CFrame = CFrame.new(0.8, 10.2, -7.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 322 | p.BrickColor = BrickColor.new("Toothpaste") |
| 323 | p.Material = Enum.Material.Neon |
| 324 | p.Anchored = true |
| 325 | p.Parent = model |
| 326 | end |
| 327 | do |
| 328 | local p = Instance.new("Part") |
| 329 | p.Name = "EyeR" |
| 330 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 331 | p.CFrame = CFrame.new(-0.8, 10.2, -7.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 332 | p.BrickColor = BrickColor.new("Toothpaste") |
| 333 | p.Material = Enum.Material.Neon |
| 334 | p.Anchored = true |
| 335 | p.Parent = model |
| 336 | end |
| 337 | do |
| 338 | local p = Instance.new("Part") |
| 339 | p.Name = "LegFL_Upper" |
| 340 | p.Size = Vector3.new(2.73861, 1.8, 1.8) |
| 341 | p.CFrame = CFrame.new(2.25, 3.75, -3) * CFrame.Angles(math.rad(0), math.rad(63.4349), math.rad(-65.9052)) |
| 342 | p.BrickColor = BrickColor.new("Bright blue") |
| 343 | p.Material = Enum.Material.Glacier |
| 344 | p.MaterialVariant = "2022 Universal" |
| 345 | p.Anchored = true |
| 346 | p.Parent = model |
| 347 | end |
| 348 | do |
| 349 | local p = Instance.new("Part") |
| 350 | p.Name = "LegFL_Lower" |
| 351 | p.Size = Vector3.new(2.23607, 1.5, 1.5) |
| 352 | p.CFrame = CFrame.new(2.5, 1.5, -4) * CFrame.Angles(math.rad(-63.4349), math.rad(90), math.rad(0)) |
| 353 | p.BrickColor = BrickColor.new("Bright blue") |
| 354 | p.Material = Enum.Material.Glacier |
| 355 | p.MaterialVariant = "2022 Universal" |
| 356 | p.Anchored = true |
| 357 | p.Parent = model |
| 358 | end |
| 359 | do |
| 360 | local p = Instance.new("Part") |
| 361 | p.Name = "FootFL" |
| 362 | p.Size = Vector3.new(2.2, 0.6, 2.5) |
| 363 | p.CFrame = CFrame.new(2.5, 0.3, -5) |
| 364 | p.BrickColor = BrickColor.new("Bright blue") |
| 365 | p.Material = Enum.Material.Glacier |
| 366 | p.MaterialVariant = "2022 Universal" |
| 367 | p.Anchored = true |
| 368 | p.Parent = model |
| 369 | end |
| 370 | do |
| 371 | local p = Instance.new("Part") |
| 372 | p.Name = "ClawFL1" |
| 373 | p.Size = Vector3.new(0.4, 0.4, 0.8) |
| 374 | p.CFrame = CFrame.new(2, 0.12, -6) |
| 375 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 376 | p.Material = Enum.Material.Glacier |
| 377 | p.MaterialVariant = "2022 Stud" |
| 378 | p.Anchored = true |
| 379 | p.Parent = model |
| 380 | end |
| 381 | do |
| 382 | local p = Instance.new("Part") |
| 383 | p.Name = "ClawFL2" |
| 384 | p.Size = Vector3.new(0.4, 0.4, 0.8) |
| 385 | p.CFrame = CFrame.new(2.5, 0.12, -6.2) |
| 386 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 387 | p.Material = Enum.Material.Glacier |
| 388 | p.MaterialVariant = "2022 Stud" |
| 389 | p.Anchored = true |
| 390 | p.Parent = model |
| 391 | end |
| 392 | do |
| 393 | local p = Instance.new("Part") |
| 394 | p.Name = "ClawFL3" |
| 395 | p.Size = Vector3.new(0.4, 0.4, 0.8) |
| 396 | p.CFrame = CFrame.new(3, 0.12, -6) |
| 397 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 398 | p.Material = Enum.Material.Glacier |
| 399 | p.MaterialVariant = "2022 Stud" |
| 400 | p.Anchored = true |
| 401 | p.Parent = model |
| 402 | end |
| 403 | do |
| 404 | local p = Instance.new("Part") |
| 405 | p.Name = "LegFR_Upper" |
| 406 | p.Size = Vector3.new(2.73861, 1.8, 1.8) |
| 407 | p.CFrame = CFrame.new(-2.25, 3.75, -3) * CFrame.Angles(math.rad(-180), math.rad(63.4349), math.rad(114.095)) |
| 408 | p.BrickColor = BrickColor.new("Bright blue") |
| 409 | p.Material = Enum.Material.Glacier |
| 410 | p.MaterialVariant = "2022 Universal" |
| 411 | p.Anchored = true |
| 412 | p.Parent = model |
| 413 | end |
| 414 | do |
| 415 | local p = Instance.new("Part") |
| 416 | p.Name = "LegFR_Lower" |
| 417 | p.Size = Vector3.new(2.23607, 1.5, 1.5) |
| 418 | p.CFrame = CFrame.new(-2.5, 1.5, -4) * CFrame.Angles(math.rad(-63.4349), math.rad(90), math.rad(0)) |
| 419 | p.BrickColor = BrickColor.new("Bright blue") |
| 420 | p.Material = Enum.Material.Glacier |
| 421 | p.MaterialVariant = "2022 Universal" |
| 422 | p.Anchored = true |
| 423 | p.Parent = model |
| 424 | end |
| 425 | do |
| 426 | local p = Instance.new("Part") |
| 427 | p.Name = "FootFR" |
| 428 | p.Size = Vector3.new(2.2, 0.6, 2.5) |
| 429 | p.CFrame = CFrame.new(-2.5, 0.3, -5) |
| 430 | p.BrickColor = BrickColor.new("Bright blue") |
| 431 | p.Material = Enum.Material.Glacier |
| 432 | p.MaterialVariant = "2022 Universal" |
| 433 | p.Anchored = true |
| 434 | p.Parent = model |
| 435 | end |
| 436 | do |
| 437 | local p = Instance.new("Part") |
| 438 | p.Name = "ClawFR1" |
| 439 | p.Size = Vector3.new(0.4, 0.4, 0.8) |
| 440 | p.CFrame = CFrame.new(-2, 0.12, -6) |
| 441 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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.Name = "ClawFR2" |
| 450 | p.Size = Vector3.new(0.4, 0.4, 0.8) |
| 451 | p.CFrame = CFrame.new(-2.5, 0.12, -6.2) |
| 452 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 453 | p.Material = Enum.Material.Glacier |
| 454 | p.MaterialVariant = "2022 Stud" |
| 455 | p.Anchored = true |
| 456 | p.Parent = model |
| 457 | end |
| 458 | do |
| 459 | local p = Instance.new("Part") |
| 460 | p.Name = "ClawFR3" |
| 461 | p.Size = Vector3.new(0.4, 0.4, 0.8) |
| 462 | p.CFrame = CFrame.new(-3, 0.12, -6) |
| 463 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 464 | p.Material = Enum.Material.Glacier |
| 465 | p.MaterialVariant = "2022 Stud" |
| 466 | p.Anchored = true |
| 467 | p.Parent = model |
| 468 | end |
| 469 | do |
| 470 | local p = Instance.new("Part") |
| 471 | p.Name = "LegBL_Upper" |
| 472 | p.Size = Vector3.new(3.08221, 2.2, 2.2) |
| 473 | p.CFrame = CFrame.new(2.75, 3.25, 3) * CFrame.Angles(math.rad(0), math.rad(-33.6901), math.rad(-54.2042)) |
| 474 | p.BrickColor = BrickColor.new("Bright blue") |
| 475 | p.Material = Enum.Material.Glacier |
| 476 | p.MaterialVariant = "2022 Universal" |
| 477 | p.Anchored = true |
| 478 | p.Parent = model |
| 479 | end |
| 480 | do |
| 481 | local p = Instance.new("Part") |
| 482 | p.Name = "LegBL_Lower" |
| 483 | p.Size = Vector3.new(1.87083, 1.8, 1.8) |
| 484 | p.CFrame = CFrame.new(3.25, 1.25, 4) * CFrame.Angles(math.rad(-180), math.rad(-63.4349), math.rad(126.699)) |
| 485 | p.BrickColor = BrickColor.new("Bright blue") |
| 486 | p.Material = Enum.Material.Glacier |
| 487 | p.MaterialVariant = "2022 Universal" |
| 488 | p.Anchored = true |
| 489 | p.Parent = model |
| 490 | end |
| 491 | do |
| 492 | local p = Instance.new("Part") |
| 493 | p.Name = "FootBL" |
| 494 | p.Size = Vector3.new(2.5, 0.8, 2.5) |
| 495 | p.CFrame = CFrame.new(3, 0.3, 5) |
| 496 | p.BrickColor = BrickColor.new("Bright blue") |
| 497 | p.Material = Enum.Material.Glacier |
| 498 | p.MaterialVariant = "2022 Universal" |
| 499 | p.Anchored = true |
| 500 | p.Parent = model |
| 501 | end |
| 502 | do |
| 503 | local p = Instance.new("Part") |
| 504 | p.Name = "LegBR_Upper" |
| 505 | p.Size = Vector3.new(3.08221, 2.2, 2.2) |
| 506 | p.CFrame = CFrame.new(-2.75, 3.25, 3) * CFrame.Angles(math.rad(-180), math.rad(-33.6901), math.rad(125.796)) |
| 507 | p.BrickColor = BrickColor.new("Bright blue") |
| 508 | p.Material = Enum.Material.Glacier |
| 509 | p.MaterialVariant = "2022 Universal" |
| 510 | p.Anchored = true |
| 511 | p.Parent = model |
| 512 | end |
| 513 | do |
| 514 | local p = Instance.new("Part") |
| 515 | p.Name = "LegBR_Lower" |
| 516 | p.Size = Vector3.new(1.87083, 1.8, 1.8) |
| 517 | p.CFrame = CFrame.new(-3.25, 1.25, 4) * CFrame.Angles(math.rad(0), math.rad(-63.4349), math.rad(-53.3008)) |
| 518 | p.BrickColor = BrickColor.new("Bright blue") |
| 519 | p.Material = Enum.Material.Glacier |
| 520 | p.MaterialVariant = "2022 Universal" |
| 521 | p.Anchored = true |
| 522 | p.Parent = model |
| 523 | end |
| 524 | do |
| 525 | local p = Instance.new("Part") |
| 526 | p.Name = "FootBR" |
| 527 | p.Size = Vector3.new(2.5, 0.8, 2.5) |
| 528 | p.CFrame = CFrame.new(-3, 0.3, 5) |
| 529 | p.BrickColor = BrickColor.new("Bright blue") |
| 530 | p.Material = Enum.Material.Glacier |
| 531 | p.MaterialVariant = "2022 Universal" |
| 532 | p.Anchored = true |
| 533 | p.Parent = model |
| 534 | end |
| 535 | do |
| 536 | local p = Instance.new("Part") |
| 537 | p.Name = "Tail1" |
| 538 | p.Size = Vector3.new(3.04138, 2.5, 2.5) |
| 539 | p.CFrame = CFrame.new(0, 3.75, 5.5) * CFrame.Angles(math.rad(9.46232), math.rad(-90), math.rad(0)) |
| 540 | p.BrickColor = BrickColor.new("Bright blue") |
| 541 | p.Material = Enum.Material.Glacier |
| 542 | p.MaterialVariant = "2022 Universal" |
| 543 | p.Anchored = true |
| 544 | p.Parent = model |
| 545 | end |
| 546 | do |
| 547 | local p = Instance.new("Part") |
| 548 | p.Name = "Tail2" |
| 549 | p.Size = Vector3.new(3.74166, 2, 2) |
| 550 | p.CFrame = CFrame.new(1, 3, 8.5) * CFrame.Angles(math.rad(0), math.rad(-56.3099), math.rad(-15.5014)) |
| 551 | p.BrickColor = BrickColor.new("Bright blue") |
| 552 | p.Material = Enum.Material.Glacier |
| 553 | p.MaterialVariant = "2022 Universal" |
| 554 | p.Anchored = true |
| 555 | p.Parent = model |
| 556 | end |
| 557 | do |
| 558 | local p = Instance.new("Part") |
| 559 | p.Name = "Tail3" |
| 560 | p.Size = Vector3.new(3.31663, 1.5, 1.5) |
| 561 | p.CFrame = CFrame.new(3.5, 2, 10.5) * CFrame.Angles(math.rad(0), math.rad(-18.4349), math.rad(-17.5484)) |
| 562 | p.BrickColor = BrickColor.new("Bright blue") |
| 563 | p.Material = Enum.Material.Glacier |
| 564 | p.MaterialVariant = "2022 Universal" |
| 565 | p.Anchored = true |
| 566 | p.Parent = model |
| 567 | end |
| 568 | do |
| 569 | local p = Instance.new("Part") |
| 570 | p.Name = "Tail4" |
| 571 | p.Size = Vector3.new(3.20156, 1, 1) |
| 572 | p.CFrame = CFrame.new(6.5, 1.25, 10.5) * CFrame.Angles(math.rad(0), math.rad(18.4349), math.rad(-8.98488)) |
| 573 | p.BrickColor = BrickColor.new("Bright blue") |
| 574 | p.Material = Enum.Material.Glacier |
| 575 | p.MaterialVariant = "2022 Universal" |
| 576 | p.Anchored = true |
| 577 | p.Parent = model |
| 578 | end |
| 579 | do |
| 580 | local p = Instance.new("Part") |
| 581 | p.Name = "WingL_Arm1" |
| 582 | p.Size = Vector3.new(6.48074, 0.8, 0.8) |
| 583 | p.CFrame = CFrame.new(4, 9.5, -1.5) * CFrame.Angles(math.rad(0), math.rad(14.0362), math.rad(50.4903)) |
| 584 | p.BrickColor = BrickColor.new("Dark blue") |
| 585 | p.Material = Enum.Material.Glacier |
| 586 | p.MaterialVariant = "2022 Inlet" |
| 587 | p.Anchored = true |
| 588 | p.Parent = model |
| 589 | end |
| 590 | do |
| 591 | local p = Instance.new("Part") |
| 592 | p.Name = "WingL_Arm2" |
| 593 | p.Size = Vector3.new(7.48332, 0.6, 0.6) |
| 594 | p.CFrame = CFrame.new(9, 13, 0) * CFrame.Angles(math.rad(0), math.rad(-33.6901), math.rad(15.5014)) |
| 595 | p.BrickColor = BrickColor.new("Dark blue") |
| 596 | p.Material = Enum.Material.Glacier |
| 597 | p.MaterialVariant = "2022 Inlet" |
| 598 | p.Anchored = true |
| 599 | p.Parent = model |
| 600 | end |
| 601 | do |
| 602 | local p = Instance.new("Part") |
| 603 | p.Name = "WingL_Finger1" |
| 604 | p.Size = Vector3.new(6, 0.4, 0.4) |
| 605 | p.CFrame = CFrame.new(13, 12, 4) * CFrame.Angles(math.rad(0), math.rad(-63.4349), math.rad(-41.8103)) |
| 606 | p.BrickColor = BrickColor.new("Dark blue") |
| 607 | p.Material = Enum.Material.Glacier |
| 608 | p.MaterialVariant = "2022 Inlet" |
| 609 | p.Anchored = true |
| 610 | p.Parent = model |
| 611 | end |
| 612 | do |
| 613 | local p = Instance.new("Part") |
| 614 | p.Name = "WingL_Finger2" |
| 615 | p.Size = Vector3.new(8.7178, 0.4, 0.4) |
| 616 | p.CFrame = CFrame.new(11, 11, 5) * CFrame.Angles(math.rad(-180), math.rad(-71.5651), math.rad(136.508)) |
| 617 | p.BrickColor = BrickColor.new("Dark blue") |
| 618 | p.Material = Enum.Material.Glacier |
| 619 | p.MaterialVariant = "2022 Inlet" |
| 620 | p.Anchored = true |
| 621 | p.Parent = model |
| 622 | end |
| 623 | do |
| 624 | local p = Instance.new("Part") |
| 625 | p.Name = "WingR_Arm1" |
| 626 | p.Size = Vector3.new(6.48074, 0.8, 0.8) |
| 627 | p.CFrame = CFrame.new(-4, 9.5, -1.5) * CFrame.Angles(math.rad(-180), math.rad(14.0362), math.rad(-129.51)) |
| 628 | p.BrickColor = BrickColor.new("Dark blue") |
| 629 | p.Material = Enum.Material.Glacier |
| 630 | p.MaterialVariant = "2022 Inlet" |
| 631 | p.Anchored = true |
| 632 | p.Parent = model |
| 633 | end |
| 634 | do |
| 635 | local p = Instance.new("Part") |
| 636 | p.Name = "WingR_Arm2" |
| 637 | p.Size = Vector3.new(7.48332, 0.6, 0.6) |
| 638 | p.CFrame = CFrame.new(-9, 13, 0) * CFrame.Angles(math.rad(-180), math.rad(-33.6901), math.rad(-164.499)) |
| 639 | p.BrickColor = BrickColor.new("Dark blue") |
| 640 | p.Material = Enum.Material.Glacier |
| 641 | p.MaterialVariant = "2022 Inlet" |
| 642 | p.Anchored = true |
| 643 | p.Parent = model |
| 644 | end |
| 645 | do |
| 646 | local p = Instance.new("Part") |
| 647 | p.Name = "WingR_Finger1" |
| 648 | p.Size = Vector3.new(6, 0.4, 0.4) |
| 649 | p.CFrame = CFrame.new(-13, 12, 4) * CFrame.Angles(math.rad(-180), math.rad(-63.4349), math.rad(138.19)) |
| 650 | p.BrickColor = BrickColor.new("Dark blue") |
| 651 | p.Material = Enum.Material.Glacier |
| 652 | p.MaterialVariant = "2022 Inlet" |
| 653 | p.Anchored = true |
| 654 | p.Parent = model |
| 655 | end |
| 656 | do |
| 657 | local p = Instance.new("Part") |
| 658 | p.Name = "WingR_Finger2" |
| 659 | p.Size = Vector3.new(8.7178, 0.4, 0.4) |
| 660 | p.CFrame = CFrame.new(-11, 11, 5) * CFrame.Angles(math.rad(0), math.rad(-71.5651), math.rad(-43.4915)) |
| 661 | p.BrickColor = BrickColor.new("Dark blue") |
| 662 | p.Material = Enum.Material.Glacier |
| 663 | p.MaterialVariant = "2022 Inlet" |
| 664 | p.Anchored = true |
| 665 | p.Parent = model |
| 666 | end |
| 667 | do |
| 668 | local p = Instance.new("WedgePart") |
| 669 | p.Name = "Spine_0" |
| 670 | p.Size = Vector3.new(0.4, 1, 0.8) |
| 671 | p.CFrame = CFrame.new(0, 6.5, -2) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) |
| 672 | p.BrickColor = BrickColor.new("Bright blue") |
| 673 | p.Material = Enum.Material.Glacier |
| 674 | p.MaterialVariant = "2022 Universal" |
| 675 | p.Anchored = true |
| 676 | p.Parent = model |
| 677 | end |
| 678 | do |
| 679 | local p = Instance.new("WedgePart") |
| 680 | p.Name = "Spine_1" |
| 681 | p.Size = Vector3.new(0.4, 1, 0.8) |
| 682 | p.CFrame = CFrame.new(0, 6.7, -0.5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) |
| 683 | p.BrickColor = BrickColor.new("Bright blue") |
| 684 | p.Material = Enum.Material.Glacier |
| 685 | p.MaterialVariant = "2022 Universal" |
| 686 | p.Anchored = true |
| 687 | p.Parent = model |
| 688 | end |
| 689 | do |
| 690 | local p = Instance.new("WedgePart") |
| 691 | p.Name = "Spine_2" |
| 692 | p.Size = Vector3.new(0.4, 1, 0.8) |
| 693 | p.CFrame = CFrame.new(0, 6.9, 1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) |
| 694 | p.BrickColor = BrickColor.new("Bright blue") |
| 695 | p.Material = Enum.Material.Glacier |
| 696 | p.MaterialVariant = "2022 Universal" |
| 697 | p.Anchored = true |
| 698 | p.Parent = model |
| 699 | end |
| 700 | do |
| 701 | local p = Instance.new("WedgePart") |
| 702 | p.Name = "Spine_3" |
| 703 | p.Size = Vector3.new(0.4, 1, 0.8) |
| 704 | p.CFrame = CFrame.new(0, 7.1, 2.5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) |
| 705 | p.BrickColor = BrickColor.new("Bright blue") |
| 706 | p.Material = Enum.Material.Glacier |
| 707 | p.MaterialVariant = "2022 Universal" |
| 708 | p.Anchored = true |
| 709 | p.Parent = model |
| 710 | end |
| 711 | do |
| 712 | local p = Instance.new("WedgePart") |
| 713 | p.Name = "Spine_4" |
| 714 | p.Size = Vector3.new(0.4, 1, 0.8) |
| 715 | p.CFrame = CFrame.new(0, 7.3, 4) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) |
| 716 | p.BrickColor = BrickColor.new("Bright blue") |
| 717 | p.Material = Enum.Material.Glacier |
| 718 | p.MaterialVariant = "2022 Universal" |
| 719 | p.Anchored = true |
| 720 | p.Parent = model |
| 721 | end |
| 722 | do |
| 723 | local rightV = Vector3.new(1,0,0).Unit |
| 724 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 725 | local normalV = upV:Cross(rightV) |
| 726 | local pos = Vector3.new(7, 10, 1) |
| 727 | local cyl = Instance.new("Part") |
| 728 | cyl.Shape = Enum.PartType.Cylinder |
| 729 | cyl.Size = Vector3.new(0.1, 12, 12) |
| 730 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 731 | cyl.BrickColor = BrickColor.new("Sand yellow") |
| 732 | cyl.Material = Enum.Material.Glacier |
| 733 | cyl.MaterialVariant = "2022 Small Stud" |
| 734 | cyl.Anchored = true; cyl.Parent = workspace |
| 735 | local cuts = {} |
| 736 | local angBoxes = {} |
| 737 | do |
| 738 | local edgeDir = 1*rightV + 0*upV |
| 739 | local edgePerp = 0*rightV + 1*upV |
| 740 | local cut = Instance.new("Part") |
| 741 | cut.Size = Vector3.new(24, 0.3, 24) |
| 742 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 12 * edgePerp, edgeDir, normalV) |
| 743 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 744 | cut.Material = Enum.Material.Glacier |
| 745 | cut.MaterialVariant = "2022 Small Stud" |
| 746 | cut.Anchored = true; cut.Parent = workspace |
| 747 | table.insert(angBoxes, cut) |
| 748 | end |
| 749 | do |
| 750 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 751 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 752 | local cut = Instance.new("Part") |
| 753 | cut.Size = Vector3.new(24, 0.3, 24) |
| 754 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 12 * edgePerp, edgeDir, normalV) |
| 755 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 756 | cut.Material = Enum.Material.Glacier |
| 757 | cut.MaterialVariant = "2022 Small Stud" |
| 758 | cut.Anchored = true; cut.Parent = workspace |
| 759 | table.insert(angBoxes, cut) |
| 760 | end |
| 761 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 762 | if #cuts > 0 then |
| 763 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 764 | for _, c in ipairs(cuts) do c:Destroy() end |
| 765 | if ok and result then |
| 766 | cyl:Destroy() |
| 767 | result.Name = "WingL_Mem1"; result.Anchored = true; result.Parent = model |
| 768 | else |
| 769 | cyl.Name = "WingL_Mem1"; cyl.Parent = model |
| 770 | end |
| 771 | else |
| 772 | cyl.Name = "WingL_Mem1"; cyl.Parent = model |
| 773 | end |
| 774 | end |
| 775 | do |
| 776 | local rightV = Vector3.new(1,0,0).Unit |
| 777 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 778 | local normalV = upV:Cross(rightV) |
| 779 | local pos = Vector3.new(10, 11, 4) |
| 780 | local cyl = Instance.new("Part") |
| 781 | cyl.Shape = Enum.PartType.Cylinder |
| 782 | cyl.Size = Vector3.new(0.1, 10, 10) |
| 783 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 784 | cyl.BrickColor = BrickColor.new("Sand yellow") |
| 785 | cyl.Material = Enum.Material.Glacier |
| 786 | cyl.MaterialVariant = "2022 Small Stud" |
| 787 | cyl.Anchored = true; cyl.Parent = workspace |
| 788 | local cuts = {} |
| 789 | local angBoxes = {} |
| 790 | do |
| 791 | local edgeDir = 1*rightV + 0*upV |
| 792 | local edgePerp = 0*rightV + 1*upV |
| 793 | local cut = Instance.new("Part") |
| 794 | cut.Size = Vector3.new(20, 0.3, 20) |
| 795 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 10 * edgePerp, edgeDir, normalV) |
| 796 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 797 | cut.Material = Enum.Material.Glacier |
| 798 | cut.MaterialVariant = "2022 Small Stud" |
| 799 | cut.Anchored = true; cut.Parent = workspace |
| 800 | table.insert(angBoxes, cut) |
| 801 | end |
| 802 | do |
| 803 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 804 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 805 | local cut = Instance.new("Part") |
| 806 | cut.Size = Vector3.new(20, 0.3, 20) |
| 807 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 10 * edgePerp, edgeDir, normalV) |
| 808 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 809 | cut.Material = Enum.Material.Glacier |
| 810 | cut.MaterialVariant = "2022 Small Stud" |
| 811 | cut.Anchored = true; cut.Parent = workspace |
| 812 | table.insert(angBoxes, cut) |
| 813 | end |
| 814 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 815 | if #cuts > 0 then |
| 816 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 817 | for _, c in ipairs(cuts) do c:Destroy() end |
| 818 | if ok and result then |
| 819 | cyl:Destroy() |
| 820 | result.Name = "WingL_Mem2"; result.Anchored = true; result.Parent = model |
| 821 | else |
| 822 | cyl.Name = "WingL_Mem2"; cyl.Parent = model |
| 823 | end |
| 824 | else |
| 825 | cyl.Name = "WingL_Mem2"; cyl.Parent = model |
| 826 | end |
| 827 | end |
| 828 | do |
| 829 | local rightV = Vector3.new(-1,0,0).Unit |
| 830 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 831 | local normalV = upV:Cross(rightV) |
| 832 | local pos = Vector3.new(-7, 10, 1) |
| 833 | local cyl = Instance.new("Part") |
| 834 | cyl.Shape = Enum.PartType.Cylinder |
| 835 | cyl.Size = Vector3.new(0.1, 12, 12) |
| 836 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 837 | cyl.BrickColor = BrickColor.new("Sand yellow") |
| 838 | cyl.Material = Enum.Material.Glacier |
| 839 | cyl.MaterialVariant = "2022 Small Stud" |
| 840 | cyl.Anchored = true; cyl.Parent = workspace |
| 841 | local cuts = {} |
| 842 | local angBoxes = {} |
| 843 | do |
| 844 | local edgeDir = 1*rightV + 0*upV |
| 845 | local edgePerp = 0*rightV + 1*upV |
| 846 | local cut = Instance.new("Part") |
| 847 | cut.Size = Vector3.new(24, 0.3, 24) |
| 848 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 12 * edgePerp, edgeDir, normalV) |
| 849 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 850 | cut.Material = Enum.Material.Glacier |
| 851 | cut.MaterialVariant = "2022 Small Stud" |
| 852 | cut.Anchored = true; cut.Parent = workspace |
| 853 | table.insert(angBoxes, cut) |
| 854 | end |
| 855 | do |
| 856 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 857 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 858 | local cut = Instance.new("Part") |
| 859 | cut.Size = Vector3.new(24, 0.3, 24) |
| 860 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 12 * edgePerp, edgeDir, normalV) |
| 861 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 862 | cut.Material = Enum.Material.Glacier |
| 863 | cut.MaterialVariant = "2022 Small Stud" |
| 864 | cut.Anchored = true; cut.Parent = workspace |
| 865 | table.insert(angBoxes, cut) |
| 866 | end |
| 867 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 868 | if #cuts > 0 then |
| 869 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 870 | for _, c in ipairs(cuts) do c:Destroy() end |
| 871 | if ok and result then |
| 872 | cyl:Destroy() |
| 873 | result.Name = "WingR_Mem1"; result.Anchored = true; result.Parent = model |
| 874 | else |
| 875 | cyl.Name = "WingR_Mem1"; cyl.Parent = model |
| 876 | end |
| 877 | else |
| 878 | cyl.Name = "WingR_Mem1"; cyl.Parent = model |
| 879 | end |
| 880 | end |
| 881 | do |
| 882 | local rightV = Vector3.new(-1,0,0).Unit |
| 883 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 884 | local normalV = upV:Cross(rightV) |
| 885 | local pos = Vector3.new(-10, 11, 4) |
| 886 | local cyl = Instance.new("Part") |
| 887 | cyl.Shape = Enum.PartType.Cylinder |
| 888 | cyl.Size = Vector3.new(0.1, 10, 10) |
| 889 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 890 | cyl.BrickColor = BrickColor.new("Sand yellow") |
| 891 | cyl.Material = Enum.Material.Glacier |
| 892 | cyl.MaterialVariant = "2022 Small Stud" |
| 893 | cyl.Anchored = true; cyl.Parent = workspace |
| 894 | local cuts = {} |
| 895 | local angBoxes = {} |
| 896 | do |
| 897 | local edgeDir = 1*rightV + 0*upV |
| 898 | local edgePerp = 0*rightV + 1*upV |
| 899 | local cut = Instance.new("Part") |
| 900 | cut.Size = Vector3.new(20, 0.3, 20) |
| 901 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 10 * edgePerp, edgeDir, normalV) |
| 902 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 903 | cut.Material = Enum.Material.Glacier |
| 904 | cut.MaterialVariant = "2022 Small Stud" |
| 905 | cut.Anchored = true; cut.Parent = workspace |
| 906 | table.insert(angBoxes, cut) |
| 907 | end |
| 908 | do |
| 909 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 910 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 911 | local cut = Instance.new("Part") |
| 912 | cut.Size = Vector3.new(20, 0.3, 20) |
| 913 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 10 * edgePerp, edgeDir, normalV) |
| 914 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 915 | cut.Material = Enum.Material.Glacier |
| 916 | cut.MaterialVariant = "2022 Small Stud" |
| 917 | cut.Anchored = true; cut.Parent = workspace |
| 918 | table.insert(angBoxes, cut) |
| 919 | end |
| 920 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 921 | if #cuts > 0 then |
| 922 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 923 | for _, c in ipairs(cuts) do c:Destroy() end |
| 924 | if ok and result then |
| 925 | cyl:Destroy() |
| 926 | result.Name = "WingR_Mem2"; result.Anchored = true; result.Parent = model |
| 927 | else |
| 928 | cyl.Name = "WingR_Mem2"; cyl.Parent = model |
| 929 | end |
| 930 | else |
| 931 | cyl.Name = "WingR_Mem2"; cyl.Parent = model |
| 932 | end |
| 933 | end |
| 934 | model.PrimaryPart = model:FindFirstChild("TorsoMain") |
| 935 | print("BlueDragon built: " .. #model:GetChildren() .. " parts") |
Loading comments...