Loading model...
by ✨Babayaga · 3/28/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: BlueFish |
| 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 = "BlueFish" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Deep orange"] = "2022 Stud", |
| 25 | ["Institutional white"] = "2022 Stud", |
| 26 | ["Pastel Blue"] = "2022 Stud", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | ["Steel blue"] = "2022 Stud", |
| 29 | ["Storm blue"] = "2022 Stud", |
| 30 | } |
| 31 | do |
| 32 | local p = Instance.new("Part") |
| 33 | p.Name = "Body_Main" |
| 34 | p.Size = Vector3.new(2, 6, 8) |
| 35 | p.CFrame = CFrame.new(0, 0, 0) |
| 36 | p.BrickColor = BrickColor.new("Storm blue") |
| 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 = "Body_Mid" |
| 45 | p.Size = Vector3.new(2.4, 5, 7) |
| 46 | p.CFrame = CFrame.new(0, 0, 0) |
| 47 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "Body_Outer" |
| 56 | p.Size = Vector3.new(2.8, 4, 6) |
| 57 | p.CFrame = CFrame.new(0, 0, 0) |
| 58 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "Head_Base" |
| 67 | p.Size = Vector3.new(1.8, 5, 2) |
| 68 | p.CFrame = CFrame.new(0, 0, -4.54) |
| 69 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "Head_Mid" |
| 78 | p.Size = Vector3.new(1.4, 3.5, 1.5) |
| 79 | p.CFrame = CFrame.new(0, -0.2, -5.5) |
| 80 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "Head_Tip" |
| 89 | p.Size = Vector3.new(1, 2, 1) |
| 90 | p.CFrame = CFrame.new(0, -0.4, -6.2) |
| 91 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "TailBase_1" |
| 100 | p.Size = Vector3.new(1.6, 4, 2) |
| 101 | p.CFrame = CFrame.new(0, 0, 4.54) |
| 102 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "TailBase_2" |
| 111 | p.Size = Vector3.new(1.2, 2.5, 1.5) |
| 112 | p.CFrame = CFrame.new(0, 0, 5.5) |
| 113 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "TailBase_3" |
| 122 | p.Size = Vector3.new(0.8, 1.5, 1.5) |
| 123 | p.CFrame = CFrame.new(0, 0, 6.5) |
| 124 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 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 = "DorsalFin_Base" |
| 133 | p.Size = Vector3.new(0.6, 1.5, 4) |
| 134 | p.CFrame = CFrame.new(0, 3.5, -1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)) |
| 135 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "DorsalFin_Mid" |
| 144 | p.Size = Vector3.new(0.4, 1.5, 3) |
| 145 | p.CFrame = CFrame.new(0, 4.2, -0.5) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 146 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "DorsalFin_Tip" |
| 155 | p.Size = Vector3.new(0.2, 1, 2) |
| 156 | p.CFrame = CFrame.new(0, 4.8, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)) |
| 157 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "PectoralFin_L_Base" |
| 166 | p.Size = Vector3.new(0.4, 2, 1.5) |
| 167 | p.CFrame = CFrame.new(-1.5, -2, -1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(30)) |
| 168 | p.BrickColor = BrickColor.new("Steel blue") |
| 169 | p.Material = Enum.Material.Glacier |
| 170 | p.MaterialVariant = "2022 Stud" |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Name = "PectoralFin_L_Tip" |
| 177 | p.Size = Vector3.new(0.2, 1.5, 1) |
| 178 | p.CFrame = CFrame.new(-2, -3, -0.5) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(40)) |
| 179 | p.BrickColor = BrickColor.new("Steel blue") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Stud" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Name = "PectoralFin_R_Base" |
| 188 | p.Size = Vector3.new(0.4, 2, 1.5) |
| 189 | p.CFrame = CFrame.new(1.5, -2, -1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-30)) |
| 190 | p.BrickColor = BrickColor.new("Steel blue") |
| 191 | p.Material = Enum.Material.Glacier |
| 192 | p.MaterialVariant = "2022 Stud" |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Name = "PectoralFin_R_Tip" |
| 199 | p.Size = Vector3.new(0.2, 1.5, 1) |
| 200 | p.CFrame = CFrame.new(2, -3, -0.5) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-40)) |
| 201 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "TailFin_Top_1" |
| 210 | p.Size = Vector3.new(0.6, 2, 1.5) |
| 211 | p.CFrame = CFrame.new(0.04, 1, 7.5) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 212 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "TailFin_Top_2" |
| 221 | p.Size = Vector3.new(0.4, 2, 1.5) |
| 222 | p.CFrame = CFrame.new(0, 2.2, 8.2) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) |
| 223 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "TailFin_Top_3" |
| 232 | p.Size = Vector3.new(0.2, 1.5, 1) |
| 233 | p.CFrame = CFrame.new(0, 3.2, 8.8) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)) |
| 234 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "TailFin_Bot_1" |
| 243 | p.Size = Vector3.new(0.6, 2, 1.5) |
| 244 | p.CFrame = CFrame.new(0, -1, 7.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)) |
| 245 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "TailFin_Bot_2" |
| 254 | p.Size = Vector3.new(0.4, 2, 1.5) |
| 255 | p.CFrame = CFrame.new(0, -2.2, 8.2) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 256 | p.BrickColor = BrickColor.new("Steel blue") |
| 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 = "TailFin_Bot_3" |
| 265 | p.Size = Vector3.new(0.2, 1.5, 1) |
| 266 | p.CFrame = CFrame.new(0, -3.2, 8.8) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)) |
| 267 | p.BrickColor = BrickColor.new("Steel blue") |
| 268 | p.Material = Enum.Material.Glacier |
| 269 | p.MaterialVariant = "2022 Stud" |
| 270 | p.Anchored = true |
| 271 | p.Parent = model |
| 272 | end |
| 273 | do |
| 274 | local p = Instance.new("Part") |
| 275 | p.Shape = Enum.PartType.Cylinder |
| 276 | p.Name = "Eye_L_Outer" |
| 277 | p.Size = Vector3.new(0.2, 1.8, 1.8) |
| 278 | p.CFrame = CFrame.new(-1.04, 0.5, -4.5) |
| 279 | p.BrickColor = BrickColor.new("Deep orange") |
| 280 | p.Material = Enum.Material.Glacier |
| 281 | p.MaterialVariant = "2022 Stud" |
| 282 | p.Anchored = true |
| 283 | p.Parent = model |
| 284 | end |
| 285 | do |
| 286 | local p = Instance.new("Part") |
| 287 | p.Shape = Enum.PartType.Cylinder |
| 288 | p.Name = "Eye_L_Inner" |
| 289 | p.Size = Vector3.new(0.2, 1, 1) |
| 290 | p.CFrame = CFrame.new(-1.1, 0.5, -4.5) |
| 291 | p.BrickColor = BrickColor.new("Really black") |
| 292 | p.Material = Enum.Material.Glacier |
| 293 | p.MaterialVariant = "2022 Universal" |
| 294 | p.Anchored = true |
| 295 | p.Parent = model |
| 296 | end |
| 297 | do |
| 298 | local p = Instance.new("Part") |
| 299 | p.Shape = Enum.PartType.Cylinder |
| 300 | p.Name = "Eye_L_High" |
| 301 | p.Size = Vector3.new(0.2, 0.4, 0.4) |
| 302 | p.CFrame = CFrame.new(-1.28, 0.7, -4.7) |
| 303 | p.BrickColor = BrickColor.new("Institutional white") |
| 304 | p.Material = Enum.Material.Glacier |
| 305 | p.MaterialVariant = "2022 Stud" |
| 306 | p.Anchored = true |
| 307 | p.Parent = model |
| 308 | end |
| 309 | do |
| 310 | local p = Instance.new("Part") |
| 311 | p.Shape = Enum.PartType.Cylinder |
| 312 | p.Name = "Eye_R_Outer" |
| 313 | p.Size = Vector3.new(0.2, 1.8, 1.8) |
| 314 | p.CFrame = CFrame.new(1.04, 0.5, -4.5) |
| 315 | p.BrickColor = BrickColor.new("Deep orange") |
| 316 | p.Material = Enum.Material.Glacier |
| 317 | p.MaterialVariant = "2022 Stud" |
| 318 | p.Anchored = true |
| 319 | p.Parent = model |
| 320 | end |
| 321 | do |
| 322 | local p = Instance.new("Part") |
| 323 | p.Shape = Enum.PartType.Cylinder |
| 324 | p.Name = "Eye_R_Inner" |
| 325 | p.Size = Vector3.new(0.2, 1, 1) |
| 326 | p.CFrame = CFrame.new(1.1, 0.5, -4.5) |
| 327 | p.BrickColor = BrickColor.new("Really black") |
| 328 | p.Material = Enum.Material.Glacier |
| 329 | p.MaterialVariant = "2022 Universal" |
| 330 | p.Anchored = true |
| 331 | p.Parent = model |
| 332 | end |
| 333 | do |
| 334 | local p = Instance.new("Part") |
| 335 | p.Shape = Enum.PartType.Cylinder |
| 336 | p.Name = "Eye_R_High" |
| 337 | p.Size = Vector3.new(0.2, 0.4, 0.4) |
| 338 | p.CFrame = CFrame.new(1.28, 0.7, -4.7) |
| 339 | p.BrickColor = BrickColor.new("Institutional white") |
| 340 | p.Material = Enum.Material.Glacier |
| 341 | p.MaterialVariant = "2022 Stud" |
| 342 | p.Anchored = true |
| 343 | p.Parent = model |
| 344 | end |
| 345 | do |
| 346 | local rightV = Vector3.new(0,0,1).Unit |
| 347 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 348 | local normalV = upV:Cross(rightV) |
| 349 | local pos = Vector3.new(-1.49, 1.5, -2) |
| 350 | local cyl = Instance.new("Part") |
| 351 | cyl.Shape = Enum.PartType.Cylinder |
| 352 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 353 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 354 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 355 | cyl.Material = Enum.Material.Glacier |
| 356 | cyl.MaterialVariant = "2022 Stud" |
| 357 | cyl.Anchored = true; cyl.Parent = workspace |
| 358 | local cuts = {} |
| 359 | local hole = Instance.new("Part") |
| 360 | hole.Shape = Enum.PartType.Cylinder |
| 361 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 362 | hole.CFrame = cyl.CFrame |
| 363 | hole.BrickColor = BrickColor.new("Storm blue") |
| 364 | hole.Material = Enum.Material.Glacier |
| 365 | hole.MaterialVariant = "2022 Stud" |
| 366 | hole.Anchored = true; hole.Parent = workspace |
| 367 | table.insert(cuts, hole) |
| 368 | local angBoxes = {} |
| 369 | do |
| 370 | local edgeDir = 1*rightV + 0*upV |
| 371 | local edgePerp = 0*rightV + 1*upV |
| 372 | local cut = Instance.new("Part") |
| 373 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 374 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 375 | cut.BrickColor = BrickColor.new("Storm blue") |
| 376 | cut.Material = Enum.Material.Glacier |
| 377 | cut.MaterialVariant = "2022 Stud" |
| 378 | cut.Anchored = true; cut.Parent = workspace |
| 379 | table.insert(angBoxes, cut) |
| 380 | end |
| 381 | do |
| 382 | local edgeDir = -1*rightV + 0*upV |
| 383 | local edgePerp = 0*rightV + -1*upV |
| 384 | local cut = Instance.new("Part") |
| 385 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 386 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 387 | cut.BrickColor = BrickColor.new("Storm blue") |
| 388 | cut.Material = Enum.Material.Glacier |
| 389 | cut.MaterialVariant = "2022 Stud" |
| 390 | cut.Anchored = true; cut.Parent = workspace |
| 391 | table.insert(angBoxes, cut) |
| 392 | end |
| 393 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 394 | if #cuts > 0 then |
| 395 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 396 | for _, c in ipairs(cuts) do c:Destroy() end |
| 397 | if ok and result then |
| 398 | cyl:Destroy() |
| 399 | result.Name = "Scale_L_0_0"; result.Anchored = true; result.Parent = model |
| 400 | else |
| 401 | cyl.Name = "Scale_L_0_0"; cyl.Parent = model |
| 402 | end |
| 403 | else |
| 404 | cyl.Name = "Scale_L_0_0"; cyl.Parent = model |
| 405 | end |
| 406 | end |
| 407 | do |
| 408 | local rightV = Vector3.new(0,0,-1).Unit |
| 409 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 410 | local normalV = upV:Cross(rightV) |
| 411 | local pos = Vector3.new(1.49, 1.5, -2) |
| 412 | local cyl = Instance.new("Part") |
| 413 | cyl.Shape = Enum.PartType.Cylinder |
| 414 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 415 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 416 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 417 | cyl.Material = Enum.Material.Glacier |
| 418 | cyl.MaterialVariant = "2022 Stud" |
| 419 | cyl.Anchored = true; cyl.Parent = workspace |
| 420 | local cuts = {} |
| 421 | local hole = Instance.new("Part") |
| 422 | hole.Shape = Enum.PartType.Cylinder |
| 423 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 424 | hole.CFrame = cyl.CFrame |
| 425 | hole.BrickColor = BrickColor.new("Storm blue") |
| 426 | hole.Material = Enum.Material.Glacier |
| 427 | hole.MaterialVariant = "2022 Stud" |
| 428 | hole.Anchored = true; hole.Parent = workspace |
| 429 | table.insert(cuts, hole) |
| 430 | local angBoxes = {} |
| 431 | do |
| 432 | local edgeDir = 1*rightV + 0*upV |
| 433 | local edgePerp = 0*rightV + 1*upV |
| 434 | local cut = Instance.new("Part") |
| 435 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 436 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 437 | cut.BrickColor = BrickColor.new("Storm blue") |
| 438 | cut.Material = Enum.Material.Glacier |
| 439 | cut.MaterialVariant = "2022 Stud" |
| 440 | cut.Anchored = true; cut.Parent = workspace |
| 441 | table.insert(angBoxes, cut) |
| 442 | end |
| 443 | do |
| 444 | local edgeDir = -1*rightV + 0*upV |
| 445 | local edgePerp = 0*rightV + -1*upV |
| 446 | local cut = Instance.new("Part") |
| 447 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 448 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 449 | cut.BrickColor = BrickColor.new("Storm blue") |
| 450 | cut.Material = Enum.Material.Glacier |
| 451 | cut.MaterialVariant = "2022 Stud" |
| 452 | cut.Anchored = true; cut.Parent = workspace |
| 453 | table.insert(angBoxes, cut) |
| 454 | end |
| 455 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 456 | if #cuts > 0 then |
| 457 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 458 | for _, c in ipairs(cuts) do c:Destroy() end |
| 459 | if ok and result then |
| 460 | cyl:Destroy() |
| 461 | result.Name = "Scale_R_0_0"; result.Anchored = true; result.Parent = model |
| 462 | else |
| 463 | cyl.Name = "Scale_R_0_0"; cyl.Parent = model |
| 464 | end |
| 465 | else |
| 466 | cyl.Name = "Scale_R_0_0"; cyl.Parent = model |
| 467 | end |
| 468 | end |
| 469 | do |
| 470 | local rightV = Vector3.new(0,0,1).Unit |
| 471 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 472 | local normalV = upV:Cross(rightV) |
| 473 | local pos = Vector3.new(-1.49, 1.5, -0.5) |
| 474 | local cyl = Instance.new("Part") |
| 475 | cyl.Shape = Enum.PartType.Cylinder |
| 476 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 477 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 478 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 479 | cyl.Material = Enum.Material.Glacier |
| 480 | cyl.MaterialVariant = "2022 Stud" |
| 481 | cyl.Anchored = true; cyl.Parent = workspace |
| 482 | local cuts = {} |
| 483 | local hole = Instance.new("Part") |
| 484 | hole.Shape = Enum.PartType.Cylinder |
| 485 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 486 | hole.CFrame = cyl.CFrame |
| 487 | hole.BrickColor = BrickColor.new("Storm blue") |
| 488 | hole.Material = Enum.Material.Glacier |
| 489 | hole.MaterialVariant = "2022 Stud" |
| 490 | hole.Anchored = true; hole.Parent = workspace |
| 491 | table.insert(cuts, hole) |
| 492 | local angBoxes = {} |
| 493 | do |
| 494 | local edgeDir = 1*rightV + 0*upV |
| 495 | local edgePerp = 0*rightV + 1*upV |
| 496 | local cut = Instance.new("Part") |
| 497 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 498 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 499 | cut.BrickColor = BrickColor.new("Storm blue") |
| 500 | cut.Material = Enum.Material.Glacier |
| 501 | cut.MaterialVariant = "2022 Stud" |
| 502 | cut.Anchored = true; cut.Parent = workspace |
| 503 | table.insert(angBoxes, cut) |
| 504 | end |
| 505 | do |
| 506 | local edgeDir = -1*rightV + 0*upV |
| 507 | local edgePerp = 0*rightV + -1*upV |
| 508 | local cut = Instance.new("Part") |
| 509 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 510 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 511 | cut.BrickColor = BrickColor.new("Storm blue") |
| 512 | cut.Material = Enum.Material.Glacier |
| 513 | cut.MaterialVariant = "2022 Stud" |
| 514 | cut.Anchored = true; cut.Parent = workspace |
| 515 | table.insert(angBoxes, cut) |
| 516 | end |
| 517 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 518 | if #cuts > 0 then |
| 519 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 520 | for _, c in ipairs(cuts) do c:Destroy() end |
| 521 | if ok and result then |
| 522 | cyl:Destroy() |
| 523 | result.Name = "Scale_L_0_1"; result.Anchored = true; result.Parent = model |
| 524 | else |
| 525 | cyl.Name = "Scale_L_0_1"; cyl.Parent = model |
| 526 | end |
| 527 | else |
| 528 | cyl.Name = "Scale_L_0_1"; cyl.Parent = model |
| 529 | end |
| 530 | end |
| 531 | do |
| 532 | local rightV = Vector3.new(0,0,-1).Unit |
| 533 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 534 | local normalV = upV:Cross(rightV) |
| 535 | local pos = Vector3.new(1.49, 1.5, -0.5) |
| 536 | local cyl = Instance.new("Part") |
| 537 | cyl.Shape = Enum.PartType.Cylinder |
| 538 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 539 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 540 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 541 | cyl.Material = Enum.Material.Glacier |
| 542 | cyl.MaterialVariant = "2022 Stud" |
| 543 | cyl.Anchored = true; cyl.Parent = workspace |
| 544 | local cuts = {} |
| 545 | local hole = Instance.new("Part") |
| 546 | hole.Shape = Enum.PartType.Cylinder |
| 547 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 548 | hole.CFrame = cyl.CFrame |
| 549 | hole.BrickColor = BrickColor.new("Storm blue") |
| 550 | hole.Material = Enum.Material.Glacier |
| 551 | hole.MaterialVariant = "2022 Stud" |
| 552 | hole.Anchored = true; hole.Parent = workspace |
| 553 | table.insert(cuts, hole) |
| 554 | local angBoxes = {} |
| 555 | do |
| 556 | local edgeDir = 1*rightV + 0*upV |
| 557 | local edgePerp = 0*rightV + 1*upV |
| 558 | local cut = Instance.new("Part") |
| 559 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 560 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 561 | cut.BrickColor = BrickColor.new("Storm blue") |
| 562 | cut.Material = Enum.Material.Glacier |
| 563 | cut.MaterialVariant = "2022 Stud" |
| 564 | cut.Anchored = true; cut.Parent = workspace |
| 565 | table.insert(angBoxes, cut) |
| 566 | end |
| 567 | do |
| 568 | local edgeDir = -1*rightV + 0*upV |
| 569 | local edgePerp = 0*rightV + -1*upV |
| 570 | local cut = Instance.new("Part") |
| 571 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 572 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 573 | cut.BrickColor = BrickColor.new("Storm blue") |
| 574 | cut.Material = Enum.Material.Glacier |
| 575 | cut.MaterialVariant = "2022 Stud" |
| 576 | cut.Anchored = true; cut.Parent = workspace |
| 577 | table.insert(angBoxes, cut) |
| 578 | end |
| 579 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 580 | if #cuts > 0 then |
| 581 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 582 | for _, c in ipairs(cuts) do c:Destroy() end |
| 583 | if ok and result then |
| 584 | cyl:Destroy() |
| 585 | result.Name = "Scale_R_0_1"; result.Anchored = true; result.Parent = model |
| 586 | else |
| 587 | cyl.Name = "Scale_R_0_1"; cyl.Parent = model |
| 588 | end |
| 589 | else |
| 590 | cyl.Name = "Scale_R_0_1"; cyl.Parent = model |
| 591 | end |
| 592 | end |
| 593 | do |
| 594 | local rightV = Vector3.new(0,0,1).Unit |
| 595 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 596 | local normalV = upV:Cross(rightV) |
| 597 | local pos = Vector3.new(-1.49, 1.5, 1) |
| 598 | local cyl = Instance.new("Part") |
| 599 | cyl.Shape = Enum.PartType.Cylinder |
| 600 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 601 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 602 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 603 | cyl.Material = Enum.Material.Glacier |
| 604 | cyl.MaterialVariant = "2022 Stud" |
| 605 | cyl.Anchored = true; cyl.Parent = workspace |
| 606 | local cuts = {} |
| 607 | local hole = Instance.new("Part") |
| 608 | hole.Shape = Enum.PartType.Cylinder |
| 609 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 610 | hole.CFrame = cyl.CFrame |
| 611 | hole.BrickColor = BrickColor.new("Storm blue") |
| 612 | hole.Material = Enum.Material.Glacier |
| 613 | hole.MaterialVariant = "2022 Stud" |
| 614 | hole.Anchored = true; hole.Parent = workspace |
| 615 | table.insert(cuts, hole) |
| 616 | local angBoxes = {} |
| 617 | do |
| 618 | local edgeDir = 1*rightV + 0*upV |
| 619 | local edgePerp = 0*rightV + 1*upV |
| 620 | local cut = Instance.new("Part") |
| 621 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 622 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 623 | cut.BrickColor = BrickColor.new("Storm blue") |
| 624 | cut.Material = Enum.Material.Glacier |
| 625 | cut.MaterialVariant = "2022 Stud" |
| 626 | cut.Anchored = true; cut.Parent = workspace |
| 627 | table.insert(angBoxes, cut) |
| 628 | end |
| 629 | do |
| 630 | local edgeDir = -1*rightV + 0*upV |
| 631 | local edgePerp = 0*rightV + -1*upV |
| 632 | local cut = Instance.new("Part") |
| 633 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 634 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 635 | cut.BrickColor = BrickColor.new("Storm blue") |
| 636 | cut.Material = Enum.Material.Glacier |
| 637 | cut.MaterialVariant = "2022 Stud" |
| 638 | cut.Anchored = true; cut.Parent = workspace |
| 639 | table.insert(angBoxes, cut) |
| 640 | end |
| 641 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 642 | if #cuts > 0 then |
| 643 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 644 | for _, c in ipairs(cuts) do c:Destroy() end |
| 645 | if ok and result then |
| 646 | cyl:Destroy() |
| 647 | result.Name = "Scale_L_0_2"; result.Anchored = true; result.Parent = model |
| 648 | else |
| 649 | cyl.Name = "Scale_L_0_2"; cyl.Parent = model |
| 650 | end |
| 651 | else |
| 652 | cyl.Name = "Scale_L_0_2"; cyl.Parent = model |
| 653 | end |
| 654 | end |
| 655 | do |
| 656 | local rightV = Vector3.new(0,0,-1).Unit |
| 657 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 658 | local normalV = upV:Cross(rightV) |
| 659 | local pos = Vector3.new(1.49, 1.5, 1) |
| 660 | local cyl = Instance.new("Part") |
| 661 | cyl.Shape = Enum.PartType.Cylinder |
| 662 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 663 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 664 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 665 | cyl.Material = Enum.Material.Glacier |
| 666 | cyl.MaterialVariant = "2022 Stud" |
| 667 | cyl.Anchored = true; cyl.Parent = workspace |
| 668 | local cuts = {} |
| 669 | local hole = Instance.new("Part") |
| 670 | hole.Shape = Enum.PartType.Cylinder |
| 671 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 672 | hole.CFrame = cyl.CFrame |
| 673 | hole.BrickColor = BrickColor.new("Storm blue") |
| 674 | hole.Material = Enum.Material.Glacier |
| 675 | hole.MaterialVariant = "2022 Stud" |
| 676 | hole.Anchored = true; hole.Parent = workspace |
| 677 | table.insert(cuts, hole) |
| 678 | local angBoxes = {} |
| 679 | do |
| 680 | local edgeDir = 1*rightV + 0*upV |
| 681 | local edgePerp = 0*rightV + 1*upV |
| 682 | local cut = Instance.new("Part") |
| 683 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 684 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 685 | cut.BrickColor = BrickColor.new("Storm blue") |
| 686 | cut.Material = Enum.Material.Glacier |
| 687 | cut.MaterialVariant = "2022 Stud" |
| 688 | cut.Anchored = true; cut.Parent = workspace |
| 689 | table.insert(angBoxes, cut) |
| 690 | end |
| 691 | do |
| 692 | local edgeDir = -1*rightV + 0*upV |
| 693 | local edgePerp = 0*rightV + -1*upV |
| 694 | local cut = Instance.new("Part") |
| 695 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 696 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 697 | cut.BrickColor = BrickColor.new("Storm blue") |
| 698 | cut.Material = Enum.Material.Glacier |
| 699 | cut.MaterialVariant = "2022 Stud" |
| 700 | cut.Anchored = true; cut.Parent = workspace |
| 701 | table.insert(angBoxes, cut) |
| 702 | end |
| 703 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 704 | if #cuts > 0 then |
| 705 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 706 | for _, c in ipairs(cuts) do c:Destroy() end |
| 707 | if ok and result then |
| 708 | cyl:Destroy() |
| 709 | result.Name = "Scale_R_0_2"; result.Anchored = true; result.Parent = model |
| 710 | else |
| 711 | cyl.Name = "Scale_R_0_2"; cyl.Parent = model |
| 712 | end |
| 713 | else |
| 714 | cyl.Name = "Scale_R_0_2"; cyl.Parent = model |
| 715 | end |
| 716 | end |
| 717 | do |
| 718 | local rightV = Vector3.new(0,0,1).Unit |
| 719 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 720 | local normalV = upV:Cross(rightV) |
| 721 | local pos = Vector3.new(-1.49, 1.5, 2.5) |
| 722 | local cyl = Instance.new("Part") |
| 723 | cyl.Shape = Enum.PartType.Cylinder |
| 724 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 725 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 726 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 727 | cyl.Material = Enum.Material.Glacier |
| 728 | cyl.MaterialVariant = "2022 Stud" |
| 729 | cyl.Anchored = true; cyl.Parent = workspace |
| 730 | local cuts = {} |
| 731 | local hole = Instance.new("Part") |
| 732 | hole.Shape = Enum.PartType.Cylinder |
| 733 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 734 | hole.CFrame = cyl.CFrame |
| 735 | hole.BrickColor = BrickColor.new("Storm blue") |
| 736 | hole.Material = Enum.Material.Glacier |
| 737 | hole.MaterialVariant = "2022 Stud" |
| 738 | hole.Anchored = true; hole.Parent = workspace |
| 739 | table.insert(cuts, hole) |
| 740 | local angBoxes = {} |
| 741 | do |
| 742 | local edgeDir = 1*rightV + 0*upV |
| 743 | local edgePerp = 0*rightV + 1*upV |
| 744 | local cut = Instance.new("Part") |
| 745 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 746 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 747 | cut.BrickColor = BrickColor.new("Storm blue") |
| 748 | cut.Material = Enum.Material.Glacier |
| 749 | cut.MaterialVariant = "2022 Stud" |
| 750 | cut.Anchored = true; cut.Parent = workspace |
| 751 | table.insert(angBoxes, cut) |
| 752 | end |
| 753 | do |
| 754 | local edgeDir = -1*rightV + 0*upV |
| 755 | local edgePerp = 0*rightV + -1*upV |
| 756 | local cut = Instance.new("Part") |
| 757 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 758 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 759 | cut.BrickColor = BrickColor.new("Storm blue") |
| 760 | cut.Material = Enum.Material.Glacier |
| 761 | cut.MaterialVariant = "2022 Stud" |
| 762 | cut.Anchored = true; cut.Parent = workspace |
| 763 | table.insert(angBoxes, cut) |
| 764 | end |
| 765 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 766 | if #cuts > 0 then |
| 767 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 768 | for _, c in ipairs(cuts) do c:Destroy() end |
| 769 | if ok and result then |
| 770 | cyl:Destroy() |
| 771 | result.Name = "Scale_L_0_3"; result.Anchored = true; result.Parent = model |
| 772 | else |
| 773 | cyl.Name = "Scale_L_0_3"; cyl.Parent = model |
| 774 | end |
| 775 | else |
| 776 | cyl.Name = "Scale_L_0_3"; cyl.Parent = model |
| 777 | end |
| 778 | end |
| 779 | do |
| 780 | local rightV = Vector3.new(0,0,-1).Unit |
| 781 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 782 | local normalV = upV:Cross(rightV) |
| 783 | local pos = Vector3.new(1.49, 1.5, 2.5) |
| 784 | local cyl = Instance.new("Part") |
| 785 | cyl.Shape = Enum.PartType.Cylinder |
| 786 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 787 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 788 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 789 | cyl.Material = Enum.Material.Glacier |
| 790 | cyl.MaterialVariant = "2022 Stud" |
| 791 | cyl.Anchored = true; cyl.Parent = workspace |
| 792 | local cuts = {} |
| 793 | local hole = Instance.new("Part") |
| 794 | hole.Shape = Enum.PartType.Cylinder |
| 795 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 796 | hole.CFrame = cyl.CFrame |
| 797 | hole.BrickColor = BrickColor.new("Storm blue") |
| 798 | hole.Material = Enum.Material.Glacier |
| 799 | hole.MaterialVariant = "2022 Stud" |
| 800 | hole.Anchored = true; hole.Parent = workspace |
| 801 | table.insert(cuts, hole) |
| 802 | local angBoxes = {} |
| 803 | do |
| 804 | local edgeDir = 1*rightV + 0*upV |
| 805 | local edgePerp = 0*rightV + 1*upV |
| 806 | local cut = Instance.new("Part") |
| 807 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 808 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 809 | cut.BrickColor = BrickColor.new("Storm blue") |
| 810 | cut.Material = Enum.Material.Glacier |
| 811 | cut.MaterialVariant = "2022 Stud" |
| 812 | cut.Anchored = true; cut.Parent = workspace |
| 813 | table.insert(angBoxes, cut) |
| 814 | end |
| 815 | do |
| 816 | local edgeDir = -1*rightV + 0*upV |
| 817 | local edgePerp = 0*rightV + -1*upV |
| 818 | local cut = Instance.new("Part") |
| 819 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 820 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 821 | cut.BrickColor = BrickColor.new("Storm blue") |
| 822 | cut.Material = Enum.Material.Glacier |
| 823 | cut.MaterialVariant = "2022 Stud" |
| 824 | cut.Anchored = true; cut.Parent = workspace |
| 825 | table.insert(angBoxes, cut) |
| 826 | end |
| 827 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 828 | if #cuts > 0 then |
| 829 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 830 | for _, c in ipairs(cuts) do c:Destroy() end |
| 831 | if ok and result then |
| 832 | cyl:Destroy() |
| 833 | result.Name = "Scale_R_0_3"; result.Anchored = true; result.Parent = model |
| 834 | else |
| 835 | cyl.Name = "Scale_R_0_3"; cyl.Parent = model |
| 836 | end |
| 837 | else |
| 838 | cyl.Name = "Scale_R_0_3"; cyl.Parent = model |
| 839 | end |
| 840 | end |
| 841 | do |
| 842 | local rightV = Vector3.new(0,0,1).Unit |
| 843 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 844 | local normalV = upV:Cross(rightV) |
| 845 | local pos = Vector3.new(-1.49, 0, -2) |
| 846 | local cyl = Instance.new("Part") |
| 847 | cyl.Shape = Enum.PartType.Cylinder |
| 848 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 849 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 850 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 851 | cyl.Material = Enum.Material.Glacier |
| 852 | cyl.MaterialVariant = "2022 Stud" |
| 853 | cyl.Anchored = true; cyl.Parent = workspace |
| 854 | local cuts = {} |
| 855 | local hole = Instance.new("Part") |
| 856 | hole.Shape = Enum.PartType.Cylinder |
| 857 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 858 | hole.CFrame = cyl.CFrame |
| 859 | hole.BrickColor = BrickColor.new("Storm blue") |
| 860 | hole.Material = Enum.Material.Glacier |
| 861 | hole.MaterialVariant = "2022 Stud" |
| 862 | hole.Anchored = true; hole.Parent = workspace |
| 863 | table.insert(cuts, hole) |
| 864 | local angBoxes = {} |
| 865 | do |
| 866 | local edgeDir = 1*rightV + 0*upV |
| 867 | local edgePerp = 0*rightV + 1*upV |
| 868 | local cut = Instance.new("Part") |
| 869 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 870 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 871 | cut.BrickColor = BrickColor.new("Storm blue") |
| 872 | cut.Material = Enum.Material.Glacier |
| 873 | cut.MaterialVariant = "2022 Stud" |
| 874 | cut.Anchored = true; cut.Parent = workspace |
| 875 | table.insert(angBoxes, cut) |
| 876 | end |
| 877 | do |
| 878 | local edgeDir = -1*rightV + 0*upV |
| 879 | local edgePerp = 0*rightV + -1*upV |
| 880 | local cut = Instance.new("Part") |
| 881 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 882 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 883 | cut.BrickColor = BrickColor.new("Storm blue") |
| 884 | cut.Material = Enum.Material.Glacier |
| 885 | cut.MaterialVariant = "2022 Stud" |
| 886 | cut.Anchored = true; cut.Parent = workspace |
| 887 | table.insert(angBoxes, cut) |
| 888 | end |
| 889 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 890 | if #cuts > 0 then |
| 891 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 892 | for _, c in ipairs(cuts) do c:Destroy() end |
| 893 | if ok and result then |
| 894 | cyl:Destroy() |
| 895 | result.Name = "Scale_L_1_0"; result.Anchored = true; result.Parent = model |
| 896 | else |
| 897 | cyl.Name = "Scale_L_1_0"; cyl.Parent = model |
| 898 | end |
| 899 | else |
| 900 | cyl.Name = "Scale_L_1_0"; cyl.Parent = model |
| 901 | end |
| 902 | end |
| 903 | do |
| 904 | local rightV = Vector3.new(0,0,-1).Unit |
| 905 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 906 | local normalV = upV:Cross(rightV) |
| 907 | local pos = Vector3.new(1.49, 0, -2) |
| 908 | local cyl = Instance.new("Part") |
| 909 | cyl.Shape = Enum.PartType.Cylinder |
| 910 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 911 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 912 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 913 | cyl.Material = Enum.Material.Glacier |
| 914 | cyl.MaterialVariant = "2022 Stud" |
| 915 | cyl.Anchored = true; cyl.Parent = workspace |
| 916 | local cuts = {} |
| 917 | local hole = Instance.new("Part") |
| 918 | hole.Shape = Enum.PartType.Cylinder |
| 919 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 920 | hole.CFrame = cyl.CFrame |
| 921 | hole.BrickColor = BrickColor.new("Storm blue") |
| 922 | hole.Material = Enum.Material.Glacier |
| 923 | hole.MaterialVariant = "2022 Stud" |
| 924 | hole.Anchored = true; hole.Parent = workspace |
| 925 | table.insert(cuts, hole) |
| 926 | local angBoxes = {} |
| 927 | do |
| 928 | local edgeDir = 1*rightV + 0*upV |
| 929 | local edgePerp = 0*rightV + 1*upV |
| 930 | local cut = Instance.new("Part") |
| 931 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 932 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 933 | cut.BrickColor = BrickColor.new("Storm blue") |
| 934 | cut.Material = Enum.Material.Glacier |
| 935 | cut.MaterialVariant = "2022 Stud" |
| 936 | cut.Anchored = true; cut.Parent = workspace |
| 937 | table.insert(angBoxes, cut) |
| 938 | end |
| 939 | do |
| 940 | local edgeDir = -1*rightV + 0*upV |
| 941 | local edgePerp = 0*rightV + -1*upV |
| 942 | local cut = Instance.new("Part") |
| 943 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 944 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 945 | cut.BrickColor = BrickColor.new("Storm blue") |
| 946 | cut.Material = Enum.Material.Glacier |
| 947 | cut.MaterialVariant = "2022 Stud" |
| 948 | cut.Anchored = true; cut.Parent = workspace |
| 949 | table.insert(angBoxes, cut) |
| 950 | end |
| 951 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 952 | if #cuts > 0 then |
| 953 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 954 | for _, c in ipairs(cuts) do c:Destroy() end |
| 955 | if ok and result then |
| 956 | cyl:Destroy() |
| 957 | result.Name = "Scale_R_1_0"; result.Anchored = true; result.Parent = model |
| 958 | else |
| 959 | cyl.Name = "Scale_R_1_0"; cyl.Parent = model |
| 960 | end |
| 961 | else |
| 962 | cyl.Name = "Scale_R_1_0"; cyl.Parent = model |
| 963 | end |
| 964 | end |
| 965 | do |
| 966 | local rightV = Vector3.new(0,0,1).Unit |
| 967 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 968 | local normalV = upV:Cross(rightV) |
| 969 | local pos = Vector3.new(-1.49, 0, -0.5) |
| 970 | local cyl = Instance.new("Part") |
| 971 | cyl.Shape = Enum.PartType.Cylinder |
| 972 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 973 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 974 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 975 | cyl.Material = Enum.Material.Glacier |
| 976 | cyl.MaterialVariant = "2022 Stud" |
| 977 | cyl.Anchored = true; cyl.Parent = workspace |
| 978 | local cuts = {} |
| 979 | local hole = Instance.new("Part") |
| 980 | hole.Shape = Enum.PartType.Cylinder |
| 981 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 982 | hole.CFrame = cyl.CFrame |
| 983 | hole.BrickColor = BrickColor.new("Storm blue") |
| 984 | hole.Material = Enum.Material.Glacier |
| 985 | hole.MaterialVariant = "2022 Stud" |
| 986 | hole.Anchored = true; hole.Parent = workspace |
| 987 | table.insert(cuts, hole) |
| 988 | local angBoxes = {} |
| 989 | do |
| 990 | local edgeDir = 1*rightV + 0*upV |
| 991 | local edgePerp = 0*rightV + 1*upV |
| 992 | local cut = Instance.new("Part") |
| 993 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 994 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 995 | cut.BrickColor = BrickColor.new("Storm blue") |
| 996 | cut.Material = Enum.Material.Glacier |
| 997 | cut.MaterialVariant = "2022 Stud" |
| 998 | cut.Anchored = true; cut.Parent = workspace |
| 999 | table.insert(angBoxes, cut) |
| 1000 | end |
| 1001 | do |
| 1002 | local edgeDir = -1*rightV + 0*upV |
| 1003 | local edgePerp = 0*rightV + -1*upV |
| 1004 | local cut = Instance.new("Part") |
| 1005 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1006 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1007 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1008 | cut.Material = Enum.Material.Glacier |
| 1009 | cut.MaterialVariant = "2022 Stud" |
| 1010 | cut.Anchored = true; cut.Parent = workspace |
| 1011 | table.insert(angBoxes, cut) |
| 1012 | end |
| 1013 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1014 | if #cuts > 0 then |
| 1015 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1016 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1017 | if ok and result then |
| 1018 | cyl:Destroy() |
| 1019 | result.Name = "Scale_L_1_1"; result.Anchored = true; result.Parent = model |
| 1020 | else |
| 1021 | cyl.Name = "Scale_L_1_1"; cyl.Parent = model |
| 1022 | end |
| 1023 | else |
| 1024 | cyl.Name = "Scale_L_1_1"; cyl.Parent = model |
| 1025 | end |
| 1026 | end |
| 1027 | do |
| 1028 | local rightV = Vector3.new(0,0,-1).Unit |
| 1029 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1030 | local normalV = upV:Cross(rightV) |
| 1031 | local pos = Vector3.new(1.49, 0, -0.5) |
| 1032 | local cyl = Instance.new("Part") |
| 1033 | cyl.Shape = Enum.PartType.Cylinder |
| 1034 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1035 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1036 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1037 | cyl.Material = Enum.Material.Glacier |
| 1038 | cyl.MaterialVariant = "2022 Stud" |
| 1039 | cyl.Anchored = true; cyl.Parent = workspace |
| 1040 | local cuts = {} |
| 1041 | local hole = Instance.new("Part") |
| 1042 | hole.Shape = Enum.PartType.Cylinder |
| 1043 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1044 | hole.CFrame = cyl.CFrame |
| 1045 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1046 | hole.Material = Enum.Material.Glacier |
| 1047 | hole.MaterialVariant = "2022 Stud" |
| 1048 | hole.Anchored = true; hole.Parent = workspace |
| 1049 | table.insert(cuts, hole) |
| 1050 | local angBoxes = {} |
| 1051 | do |
| 1052 | local edgeDir = 1*rightV + 0*upV |
| 1053 | local edgePerp = 0*rightV + 1*upV |
| 1054 | local cut = Instance.new("Part") |
| 1055 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1056 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1057 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1058 | cut.Material = Enum.Material.Glacier |
| 1059 | cut.MaterialVariant = "2022 Stud" |
| 1060 | cut.Anchored = true; cut.Parent = workspace |
| 1061 | table.insert(angBoxes, cut) |
| 1062 | end |
| 1063 | do |
| 1064 | local edgeDir = -1*rightV + 0*upV |
| 1065 | local edgePerp = 0*rightV + -1*upV |
| 1066 | local cut = Instance.new("Part") |
| 1067 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1068 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1069 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1070 | cut.Material = Enum.Material.Glacier |
| 1071 | cut.MaterialVariant = "2022 Stud" |
| 1072 | cut.Anchored = true; cut.Parent = workspace |
| 1073 | table.insert(angBoxes, cut) |
| 1074 | end |
| 1075 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1076 | if #cuts > 0 then |
| 1077 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1078 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1079 | if ok and result then |
| 1080 | cyl:Destroy() |
| 1081 | result.Name = "Scale_R_1_1"; result.Anchored = true; result.Parent = model |
| 1082 | else |
| 1083 | cyl.Name = "Scale_R_1_1"; cyl.Parent = model |
| 1084 | end |
| 1085 | else |
| 1086 | cyl.Name = "Scale_R_1_1"; cyl.Parent = model |
| 1087 | end |
| 1088 | end |
| 1089 | do |
| 1090 | local rightV = Vector3.new(0,0,1).Unit |
| 1091 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1092 | local normalV = upV:Cross(rightV) |
| 1093 | local pos = Vector3.new(-1.49, 0, 1) |
| 1094 | local cyl = Instance.new("Part") |
| 1095 | cyl.Shape = Enum.PartType.Cylinder |
| 1096 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1097 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1098 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1099 | cyl.Material = Enum.Material.Glacier |
| 1100 | cyl.MaterialVariant = "2022 Stud" |
| 1101 | cyl.Anchored = true; cyl.Parent = workspace |
| 1102 | local cuts = {} |
| 1103 | local hole = Instance.new("Part") |
| 1104 | hole.Shape = Enum.PartType.Cylinder |
| 1105 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1106 | hole.CFrame = cyl.CFrame |
| 1107 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1108 | hole.Material = Enum.Material.Glacier |
| 1109 | hole.MaterialVariant = "2022 Stud" |
| 1110 | hole.Anchored = true; hole.Parent = workspace |
| 1111 | table.insert(cuts, hole) |
| 1112 | local angBoxes = {} |
| 1113 | do |
| 1114 | local edgeDir = 1*rightV + 0*upV |
| 1115 | local edgePerp = 0*rightV + 1*upV |
| 1116 | local cut = Instance.new("Part") |
| 1117 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1118 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1119 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1120 | cut.Material = Enum.Material.Glacier |
| 1121 | cut.MaterialVariant = "2022 Stud" |
| 1122 | cut.Anchored = true; cut.Parent = workspace |
| 1123 | table.insert(angBoxes, cut) |
| 1124 | end |
| 1125 | do |
| 1126 | local edgeDir = -1*rightV + 0*upV |
| 1127 | local edgePerp = 0*rightV + -1*upV |
| 1128 | local cut = Instance.new("Part") |
| 1129 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1130 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1131 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1132 | cut.Material = Enum.Material.Glacier |
| 1133 | cut.MaterialVariant = "2022 Stud" |
| 1134 | cut.Anchored = true; cut.Parent = workspace |
| 1135 | table.insert(angBoxes, cut) |
| 1136 | end |
| 1137 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1138 | if #cuts > 0 then |
| 1139 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1140 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1141 | if ok and result then |
| 1142 | cyl:Destroy() |
| 1143 | result.Name = "Scale_L_1_2"; result.Anchored = true; result.Parent = model |
| 1144 | else |
| 1145 | cyl.Name = "Scale_L_1_2"; cyl.Parent = model |
| 1146 | end |
| 1147 | else |
| 1148 | cyl.Name = "Scale_L_1_2"; cyl.Parent = model |
| 1149 | end |
| 1150 | end |
| 1151 | do |
| 1152 | local rightV = Vector3.new(0,0,-1).Unit |
| 1153 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1154 | local normalV = upV:Cross(rightV) |
| 1155 | local pos = Vector3.new(1.49, 0, 1) |
| 1156 | local cyl = Instance.new("Part") |
| 1157 | cyl.Shape = Enum.PartType.Cylinder |
| 1158 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1159 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1160 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1161 | cyl.Material = Enum.Material.Glacier |
| 1162 | cyl.MaterialVariant = "2022 Stud" |
| 1163 | cyl.Anchored = true; cyl.Parent = workspace |
| 1164 | local cuts = {} |
| 1165 | local hole = Instance.new("Part") |
| 1166 | hole.Shape = Enum.PartType.Cylinder |
| 1167 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1168 | hole.CFrame = cyl.CFrame |
| 1169 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1170 | hole.Material = Enum.Material.Glacier |
| 1171 | hole.MaterialVariant = "2022 Stud" |
| 1172 | hole.Anchored = true; hole.Parent = workspace |
| 1173 | table.insert(cuts, hole) |
| 1174 | local angBoxes = {} |
| 1175 | do |
| 1176 | local edgeDir = 1*rightV + 0*upV |
| 1177 | local edgePerp = 0*rightV + 1*upV |
| 1178 | local cut = Instance.new("Part") |
| 1179 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1180 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1181 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1182 | cut.Material = Enum.Material.Glacier |
| 1183 | cut.MaterialVariant = "2022 Stud" |
| 1184 | cut.Anchored = true; cut.Parent = workspace |
| 1185 | table.insert(angBoxes, cut) |
| 1186 | end |
| 1187 | do |
| 1188 | local edgeDir = -1*rightV + 0*upV |
| 1189 | local edgePerp = 0*rightV + -1*upV |
| 1190 | local cut = Instance.new("Part") |
| 1191 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1192 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1193 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1194 | cut.Material = Enum.Material.Glacier |
| 1195 | cut.MaterialVariant = "2022 Stud" |
| 1196 | cut.Anchored = true; cut.Parent = workspace |
| 1197 | table.insert(angBoxes, cut) |
| 1198 | end |
| 1199 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1200 | if #cuts > 0 then |
| 1201 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1202 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1203 | if ok and result then |
| 1204 | cyl:Destroy() |
| 1205 | result.Name = "Scale_R_1_2"; result.Anchored = true; result.Parent = model |
| 1206 | else |
| 1207 | cyl.Name = "Scale_R_1_2"; cyl.Parent = model |
| 1208 | end |
| 1209 | else |
| 1210 | cyl.Name = "Scale_R_1_2"; cyl.Parent = model |
| 1211 | end |
| 1212 | end |
| 1213 | do |
| 1214 | local rightV = Vector3.new(0,0,1).Unit |
| 1215 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1216 | local normalV = upV:Cross(rightV) |
| 1217 | local pos = Vector3.new(-1.49, 0, 2.5) |
| 1218 | local cyl = Instance.new("Part") |
| 1219 | cyl.Shape = Enum.PartType.Cylinder |
| 1220 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1221 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1222 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1223 | cyl.Material = Enum.Material.Glacier |
| 1224 | cyl.MaterialVariant = "2022 Stud" |
| 1225 | cyl.Anchored = true; cyl.Parent = workspace |
| 1226 | local cuts = {} |
| 1227 | local hole = Instance.new("Part") |
| 1228 | hole.Shape = Enum.PartType.Cylinder |
| 1229 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1230 | hole.CFrame = cyl.CFrame |
| 1231 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1232 | hole.Material = Enum.Material.Glacier |
| 1233 | hole.MaterialVariant = "2022 Stud" |
| 1234 | hole.Anchored = true; hole.Parent = workspace |
| 1235 | table.insert(cuts, hole) |
| 1236 | local angBoxes = {} |
| 1237 | do |
| 1238 | local edgeDir = 1*rightV + 0*upV |
| 1239 | local edgePerp = 0*rightV + 1*upV |
| 1240 | local cut = Instance.new("Part") |
| 1241 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1242 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1243 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1244 | cut.Material = Enum.Material.Glacier |
| 1245 | cut.MaterialVariant = "2022 Stud" |
| 1246 | cut.Anchored = true; cut.Parent = workspace |
| 1247 | table.insert(angBoxes, cut) |
| 1248 | end |
| 1249 | do |
| 1250 | local edgeDir = -1*rightV + 0*upV |
| 1251 | local edgePerp = 0*rightV + -1*upV |
| 1252 | local cut = Instance.new("Part") |
| 1253 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1254 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1255 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1256 | cut.Material = Enum.Material.Glacier |
| 1257 | cut.MaterialVariant = "2022 Stud" |
| 1258 | cut.Anchored = true; cut.Parent = workspace |
| 1259 | table.insert(angBoxes, cut) |
| 1260 | end |
| 1261 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1262 | if #cuts > 0 then |
| 1263 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1264 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1265 | if ok and result then |
| 1266 | cyl:Destroy() |
| 1267 | result.Name = "Scale_L_1_3"; result.Anchored = true; result.Parent = model |
| 1268 | else |
| 1269 | cyl.Name = "Scale_L_1_3"; cyl.Parent = model |
| 1270 | end |
| 1271 | else |
| 1272 | cyl.Name = "Scale_L_1_3"; cyl.Parent = model |
| 1273 | end |
| 1274 | end |
| 1275 | do |
| 1276 | local rightV = Vector3.new(0,0,-1).Unit |
| 1277 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1278 | local normalV = upV:Cross(rightV) |
| 1279 | local pos = Vector3.new(1.49, 0, 2.5) |
| 1280 | local cyl = Instance.new("Part") |
| 1281 | cyl.Shape = Enum.PartType.Cylinder |
| 1282 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1283 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1284 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1285 | cyl.Material = Enum.Material.Glacier |
| 1286 | cyl.MaterialVariant = "2022 Stud" |
| 1287 | cyl.Anchored = true; cyl.Parent = workspace |
| 1288 | local cuts = {} |
| 1289 | local hole = Instance.new("Part") |
| 1290 | hole.Shape = Enum.PartType.Cylinder |
| 1291 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1292 | hole.CFrame = cyl.CFrame |
| 1293 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1294 | hole.Material = Enum.Material.Glacier |
| 1295 | hole.MaterialVariant = "2022 Stud" |
| 1296 | hole.Anchored = true; hole.Parent = workspace |
| 1297 | table.insert(cuts, hole) |
| 1298 | local angBoxes = {} |
| 1299 | do |
| 1300 | local edgeDir = 1*rightV + 0*upV |
| 1301 | local edgePerp = 0*rightV + 1*upV |
| 1302 | local cut = Instance.new("Part") |
| 1303 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1304 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1305 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1306 | cut.Material = Enum.Material.Glacier |
| 1307 | cut.MaterialVariant = "2022 Stud" |
| 1308 | cut.Anchored = true; cut.Parent = workspace |
| 1309 | table.insert(angBoxes, cut) |
| 1310 | end |
| 1311 | do |
| 1312 | local edgeDir = -1*rightV + 0*upV |
| 1313 | local edgePerp = 0*rightV + -1*upV |
| 1314 | local cut = Instance.new("Part") |
| 1315 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1316 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1317 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1318 | cut.Material = Enum.Material.Glacier |
| 1319 | cut.MaterialVariant = "2022 Stud" |
| 1320 | cut.Anchored = true; cut.Parent = workspace |
| 1321 | table.insert(angBoxes, cut) |
| 1322 | end |
| 1323 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1324 | if #cuts > 0 then |
| 1325 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1326 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1327 | if ok and result then |
| 1328 | cyl:Destroy() |
| 1329 | result.Name = "Scale_R_1_3"; result.Anchored = true; result.Parent = model |
| 1330 | else |
| 1331 | cyl.Name = "Scale_R_1_3"; cyl.Parent = model |
| 1332 | end |
| 1333 | else |
| 1334 | cyl.Name = "Scale_R_1_3"; cyl.Parent = model |
| 1335 | end |
| 1336 | end |
| 1337 | do |
| 1338 | local rightV = Vector3.new(0,0,1).Unit |
| 1339 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1340 | local normalV = upV:Cross(rightV) |
| 1341 | local pos = Vector3.new(-1.49, -1.5, -2) |
| 1342 | local cyl = Instance.new("Part") |
| 1343 | cyl.Shape = Enum.PartType.Cylinder |
| 1344 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1345 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1346 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1347 | cyl.Material = Enum.Material.Glacier |
| 1348 | cyl.MaterialVariant = "2022 Stud" |
| 1349 | cyl.Anchored = true; cyl.Parent = workspace |
| 1350 | local cuts = {} |
| 1351 | local hole = Instance.new("Part") |
| 1352 | hole.Shape = Enum.PartType.Cylinder |
| 1353 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1354 | hole.CFrame = cyl.CFrame |
| 1355 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1356 | hole.Material = Enum.Material.Glacier |
| 1357 | hole.MaterialVariant = "2022 Stud" |
| 1358 | hole.Anchored = true; hole.Parent = workspace |
| 1359 | table.insert(cuts, hole) |
| 1360 | local angBoxes = {} |
| 1361 | do |
| 1362 | local edgeDir = 1*rightV + 0*upV |
| 1363 | local edgePerp = 0*rightV + 1*upV |
| 1364 | local cut = Instance.new("Part") |
| 1365 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1366 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1367 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1368 | cut.Material = Enum.Material.Glacier |
| 1369 | cut.MaterialVariant = "2022 Stud" |
| 1370 | cut.Anchored = true; cut.Parent = workspace |
| 1371 | table.insert(angBoxes, cut) |
| 1372 | end |
| 1373 | do |
| 1374 | local edgeDir = -1*rightV + 0*upV |
| 1375 | local edgePerp = 0*rightV + -1*upV |
| 1376 | local cut = Instance.new("Part") |
| 1377 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1378 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1379 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1380 | cut.Material = Enum.Material.Glacier |
| 1381 | cut.MaterialVariant = "2022 Stud" |
| 1382 | cut.Anchored = true; cut.Parent = workspace |
| 1383 | table.insert(angBoxes, cut) |
| 1384 | end |
| 1385 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1386 | if #cuts > 0 then |
| 1387 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1388 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1389 | if ok and result then |
| 1390 | cyl:Destroy() |
| 1391 | result.Name = "Scale_L_2_0"; result.Anchored = true; result.Parent = model |
| 1392 | else |
| 1393 | cyl.Name = "Scale_L_2_0"; cyl.Parent = model |
| 1394 | end |
| 1395 | else |
| 1396 | cyl.Name = "Scale_L_2_0"; cyl.Parent = model |
| 1397 | end |
| 1398 | end |
| 1399 | do |
| 1400 | local rightV = Vector3.new(0,0,-1).Unit |
| 1401 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1402 | local normalV = upV:Cross(rightV) |
| 1403 | local pos = Vector3.new(1.49, -1.5, -2) |
| 1404 | local cyl = Instance.new("Part") |
| 1405 | cyl.Shape = Enum.PartType.Cylinder |
| 1406 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1407 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1408 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1409 | cyl.Material = Enum.Material.Glacier |
| 1410 | cyl.MaterialVariant = "2022 Stud" |
| 1411 | cyl.Anchored = true; cyl.Parent = workspace |
| 1412 | local cuts = {} |
| 1413 | local hole = Instance.new("Part") |
| 1414 | hole.Shape = Enum.PartType.Cylinder |
| 1415 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1416 | hole.CFrame = cyl.CFrame |
| 1417 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1418 | hole.Material = Enum.Material.Glacier |
| 1419 | hole.MaterialVariant = "2022 Stud" |
| 1420 | hole.Anchored = true; hole.Parent = workspace |
| 1421 | table.insert(cuts, hole) |
| 1422 | local angBoxes = {} |
| 1423 | do |
| 1424 | local edgeDir = 1*rightV + 0*upV |
| 1425 | local edgePerp = 0*rightV + 1*upV |
| 1426 | local cut = Instance.new("Part") |
| 1427 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1428 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1429 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1430 | cut.Material = Enum.Material.Glacier |
| 1431 | cut.MaterialVariant = "2022 Stud" |
| 1432 | cut.Anchored = true; cut.Parent = workspace |
| 1433 | table.insert(angBoxes, cut) |
| 1434 | end |
| 1435 | do |
| 1436 | local edgeDir = -1*rightV + 0*upV |
| 1437 | local edgePerp = 0*rightV + -1*upV |
| 1438 | local cut = Instance.new("Part") |
| 1439 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1440 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1441 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1442 | cut.Material = Enum.Material.Glacier |
| 1443 | cut.MaterialVariant = "2022 Stud" |
| 1444 | cut.Anchored = true; cut.Parent = workspace |
| 1445 | table.insert(angBoxes, cut) |
| 1446 | end |
| 1447 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1448 | if #cuts > 0 then |
| 1449 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1450 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1451 | if ok and result then |
| 1452 | cyl:Destroy() |
| 1453 | result.Name = "Scale_R_2_0"; result.Anchored = true; result.Parent = model |
| 1454 | else |
| 1455 | cyl.Name = "Scale_R_2_0"; cyl.Parent = model |
| 1456 | end |
| 1457 | else |
| 1458 | cyl.Name = "Scale_R_2_0"; cyl.Parent = model |
| 1459 | end |
| 1460 | end |
| 1461 | do |
| 1462 | local rightV = Vector3.new(0,0,1).Unit |
| 1463 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1464 | local normalV = upV:Cross(rightV) |
| 1465 | local pos = Vector3.new(-1.49, -1.5, -0.5) |
| 1466 | local cyl = Instance.new("Part") |
| 1467 | cyl.Shape = Enum.PartType.Cylinder |
| 1468 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1469 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1470 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1471 | cyl.Material = Enum.Material.Glacier |
| 1472 | cyl.MaterialVariant = "2022 Stud" |
| 1473 | cyl.Anchored = true; cyl.Parent = workspace |
| 1474 | local cuts = {} |
| 1475 | local hole = Instance.new("Part") |
| 1476 | hole.Shape = Enum.PartType.Cylinder |
| 1477 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1478 | hole.CFrame = cyl.CFrame |
| 1479 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1480 | hole.Material = Enum.Material.Glacier |
| 1481 | hole.MaterialVariant = "2022 Stud" |
| 1482 | hole.Anchored = true; hole.Parent = workspace |
| 1483 | table.insert(cuts, hole) |
| 1484 | local angBoxes = {} |
| 1485 | do |
| 1486 | local edgeDir = 1*rightV + 0*upV |
| 1487 | local edgePerp = 0*rightV + 1*upV |
| 1488 | local cut = Instance.new("Part") |
| 1489 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1490 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1491 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1492 | cut.Material = Enum.Material.Glacier |
| 1493 | cut.MaterialVariant = "2022 Stud" |
| 1494 | cut.Anchored = true; cut.Parent = workspace |
| 1495 | table.insert(angBoxes, cut) |
| 1496 | end |
| 1497 | do |
| 1498 | local edgeDir = -1*rightV + 0*upV |
| 1499 | local edgePerp = 0*rightV + -1*upV |
| 1500 | local cut = Instance.new("Part") |
| 1501 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1502 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1503 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1504 | cut.Material = Enum.Material.Glacier |
| 1505 | cut.MaterialVariant = "2022 Stud" |
| 1506 | cut.Anchored = true; cut.Parent = workspace |
| 1507 | table.insert(angBoxes, cut) |
| 1508 | end |
| 1509 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1510 | if #cuts > 0 then |
| 1511 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1512 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1513 | if ok and result then |
| 1514 | cyl:Destroy() |
| 1515 | result.Name = "Scale_L_2_1"; result.Anchored = true; result.Parent = model |
| 1516 | else |
| 1517 | cyl.Name = "Scale_L_2_1"; cyl.Parent = model |
| 1518 | end |
| 1519 | else |
| 1520 | cyl.Name = "Scale_L_2_1"; cyl.Parent = model |
| 1521 | end |
| 1522 | end |
| 1523 | do |
| 1524 | local rightV = Vector3.new(0,0,-1).Unit |
| 1525 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1526 | local normalV = upV:Cross(rightV) |
| 1527 | local pos = Vector3.new(1.49, -1.5, -0.5) |
| 1528 | local cyl = Instance.new("Part") |
| 1529 | cyl.Shape = Enum.PartType.Cylinder |
| 1530 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1531 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1532 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1533 | cyl.Material = Enum.Material.Glacier |
| 1534 | cyl.MaterialVariant = "2022 Stud" |
| 1535 | cyl.Anchored = true; cyl.Parent = workspace |
| 1536 | local cuts = {} |
| 1537 | local hole = Instance.new("Part") |
| 1538 | hole.Shape = Enum.PartType.Cylinder |
| 1539 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1540 | hole.CFrame = cyl.CFrame |
| 1541 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1542 | hole.Material = Enum.Material.Glacier |
| 1543 | hole.MaterialVariant = "2022 Stud" |
| 1544 | hole.Anchored = true; hole.Parent = workspace |
| 1545 | table.insert(cuts, hole) |
| 1546 | local angBoxes = {} |
| 1547 | do |
| 1548 | local edgeDir = 1*rightV + 0*upV |
| 1549 | local edgePerp = 0*rightV + 1*upV |
| 1550 | local cut = Instance.new("Part") |
| 1551 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1552 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1553 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1554 | cut.Material = Enum.Material.Glacier |
| 1555 | cut.MaterialVariant = "2022 Stud" |
| 1556 | cut.Anchored = true; cut.Parent = workspace |
| 1557 | table.insert(angBoxes, cut) |
| 1558 | end |
| 1559 | do |
| 1560 | local edgeDir = -1*rightV + 0*upV |
| 1561 | local edgePerp = 0*rightV + -1*upV |
| 1562 | local cut = Instance.new("Part") |
| 1563 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1564 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1565 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1566 | cut.Material = Enum.Material.Glacier |
| 1567 | cut.MaterialVariant = "2022 Stud" |
| 1568 | cut.Anchored = true; cut.Parent = workspace |
| 1569 | table.insert(angBoxes, cut) |
| 1570 | end |
| 1571 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1572 | if #cuts > 0 then |
| 1573 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1574 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1575 | if ok and result then |
| 1576 | cyl:Destroy() |
| 1577 | result.Name = "Scale_R_2_1"; result.Anchored = true; result.Parent = model |
| 1578 | else |
| 1579 | cyl.Name = "Scale_R_2_1"; cyl.Parent = model |
| 1580 | end |
| 1581 | else |
| 1582 | cyl.Name = "Scale_R_2_1"; cyl.Parent = model |
| 1583 | end |
| 1584 | end |
| 1585 | do |
| 1586 | local rightV = Vector3.new(0,0,1).Unit |
| 1587 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1588 | local normalV = upV:Cross(rightV) |
| 1589 | local pos = Vector3.new(-1.49, -1.5, 1) |
| 1590 | local cyl = Instance.new("Part") |
| 1591 | cyl.Shape = Enum.PartType.Cylinder |
| 1592 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1593 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1594 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1595 | cyl.Material = Enum.Material.Glacier |
| 1596 | cyl.MaterialVariant = "2022 Stud" |
| 1597 | cyl.Anchored = true; cyl.Parent = workspace |
| 1598 | local cuts = {} |
| 1599 | local hole = Instance.new("Part") |
| 1600 | hole.Shape = Enum.PartType.Cylinder |
| 1601 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1602 | hole.CFrame = cyl.CFrame |
| 1603 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1604 | hole.Material = Enum.Material.Glacier |
| 1605 | hole.MaterialVariant = "2022 Stud" |
| 1606 | hole.Anchored = true; hole.Parent = workspace |
| 1607 | table.insert(cuts, hole) |
| 1608 | local angBoxes = {} |
| 1609 | do |
| 1610 | local edgeDir = 1*rightV + 0*upV |
| 1611 | local edgePerp = 0*rightV + 1*upV |
| 1612 | local cut = Instance.new("Part") |
| 1613 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1614 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1615 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1616 | cut.Material = Enum.Material.Glacier |
| 1617 | cut.MaterialVariant = "2022 Stud" |
| 1618 | cut.Anchored = true; cut.Parent = workspace |
| 1619 | table.insert(angBoxes, cut) |
| 1620 | end |
| 1621 | do |
| 1622 | local edgeDir = -1*rightV + 0*upV |
| 1623 | local edgePerp = 0*rightV + -1*upV |
| 1624 | local cut = Instance.new("Part") |
| 1625 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1626 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1627 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1628 | cut.Material = Enum.Material.Glacier |
| 1629 | cut.MaterialVariant = "2022 Stud" |
| 1630 | cut.Anchored = true; cut.Parent = workspace |
| 1631 | table.insert(angBoxes, cut) |
| 1632 | end |
| 1633 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1634 | if #cuts > 0 then |
| 1635 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1636 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1637 | if ok and result then |
| 1638 | cyl:Destroy() |
| 1639 | result.Name = "Scale_L_2_2"; result.Anchored = true; result.Parent = model |
| 1640 | else |
| 1641 | cyl.Name = "Scale_L_2_2"; cyl.Parent = model |
| 1642 | end |
| 1643 | else |
| 1644 | cyl.Name = "Scale_L_2_2"; cyl.Parent = model |
| 1645 | end |
| 1646 | end |
| 1647 | do |
| 1648 | local rightV = Vector3.new(0,0,-1).Unit |
| 1649 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1650 | local normalV = upV:Cross(rightV) |
| 1651 | local pos = Vector3.new(1.49, -1.5, 1) |
| 1652 | local cyl = Instance.new("Part") |
| 1653 | cyl.Shape = Enum.PartType.Cylinder |
| 1654 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1655 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1656 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1657 | cyl.Material = Enum.Material.Glacier |
| 1658 | cyl.MaterialVariant = "2022 Stud" |
| 1659 | cyl.Anchored = true; cyl.Parent = workspace |
| 1660 | local cuts = {} |
| 1661 | local hole = Instance.new("Part") |
| 1662 | hole.Shape = Enum.PartType.Cylinder |
| 1663 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1664 | hole.CFrame = cyl.CFrame |
| 1665 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1666 | hole.Material = Enum.Material.Glacier |
| 1667 | hole.MaterialVariant = "2022 Stud" |
| 1668 | hole.Anchored = true; hole.Parent = workspace |
| 1669 | table.insert(cuts, hole) |
| 1670 | local angBoxes = {} |
| 1671 | do |
| 1672 | local edgeDir = 1*rightV + 0*upV |
| 1673 | local edgePerp = 0*rightV + 1*upV |
| 1674 | local cut = Instance.new("Part") |
| 1675 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1676 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1677 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1678 | cut.Material = Enum.Material.Glacier |
| 1679 | cut.MaterialVariant = "2022 Stud" |
| 1680 | cut.Anchored = true; cut.Parent = workspace |
| 1681 | table.insert(angBoxes, cut) |
| 1682 | end |
| 1683 | do |
| 1684 | local edgeDir = -1*rightV + 0*upV |
| 1685 | local edgePerp = 0*rightV + -1*upV |
| 1686 | local cut = Instance.new("Part") |
| 1687 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1688 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1689 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1690 | cut.Material = Enum.Material.Glacier |
| 1691 | cut.MaterialVariant = "2022 Stud" |
| 1692 | cut.Anchored = true; cut.Parent = workspace |
| 1693 | table.insert(angBoxes, cut) |
| 1694 | end |
| 1695 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1696 | if #cuts > 0 then |
| 1697 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1698 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1699 | if ok and result then |
| 1700 | cyl:Destroy() |
| 1701 | result.Name = "Scale_R_2_2"; result.Anchored = true; result.Parent = model |
| 1702 | else |
| 1703 | cyl.Name = "Scale_R_2_2"; cyl.Parent = model |
| 1704 | end |
| 1705 | else |
| 1706 | cyl.Name = "Scale_R_2_2"; cyl.Parent = model |
| 1707 | end |
| 1708 | end |
| 1709 | do |
| 1710 | local rightV = Vector3.new(0,0,1).Unit |
| 1711 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1712 | local normalV = upV:Cross(rightV) |
| 1713 | local pos = Vector3.new(-1.49, -1.5, 2.5) |
| 1714 | local cyl = Instance.new("Part") |
| 1715 | cyl.Shape = Enum.PartType.Cylinder |
| 1716 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1717 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1718 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1719 | cyl.Material = Enum.Material.Glacier |
| 1720 | cyl.MaterialVariant = "2022 Stud" |
| 1721 | cyl.Anchored = true; cyl.Parent = workspace |
| 1722 | local cuts = {} |
| 1723 | local hole = Instance.new("Part") |
| 1724 | hole.Shape = Enum.PartType.Cylinder |
| 1725 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1726 | hole.CFrame = cyl.CFrame |
| 1727 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1728 | hole.Material = Enum.Material.Glacier |
| 1729 | hole.MaterialVariant = "2022 Stud" |
| 1730 | hole.Anchored = true; hole.Parent = workspace |
| 1731 | table.insert(cuts, hole) |
| 1732 | local angBoxes = {} |
| 1733 | do |
| 1734 | local edgeDir = 1*rightV + 0*upV |
| 1735 | local edgePerp = 0*rightV + 1*upV |
| 1736 | local cut = Instance.new("Part") |
| 1737 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1738 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1739 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1740 | cut.Material = Enum.Material.Glacier |
| 1741 | cut.MaterialVariant = "2022 Stud" |
| 1742 | cut.Anchored = true; cut.Parent = workspace |
| 1743 | table.insert(angBoxes, cut) |
| 1744 | end |
| 1745 | do |
| 1746 | local edgeDir = -1*rightV + 0*upV |
| 1747 | local edgePerp = 0*rightV + -1*upV |
| 1748 | local cut = Instance.new("Part") |
| 1749 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1750 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1751 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1752 | cut.Material = Enum.Material.Glacier |
| 1753 | cut.MaterialVariant = "2022 Stud" |
| 1754 | cut.Anchored = true; cut.Parent = workspace |
| 1755 | table.insert(angBoxes, cut) |
| 1756 | end |
| 1757 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1758 | if #cuts > 0 then |
| 1759 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1760 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1761 | if ok and result then |
| 1762 | cyl:Destroy() |
| 1763 | result.Name = "Scale_L_2_3"; result.Anchored = true; result.Parent = model |
| 1764 | else |
| 1765 | cyl.Name = "Scale_L_2_3"; cyl.Parent = model |
| 1766 | end |
| 1767 | else |
| 1768 | cyl.Name = "Scale_L_2_3"; cyl.Parent = model |
| 1769 | end |
| 1770 | end |
| 1771 | do |
| 1772 | local rightV = Vector3.new(0,0,-1).Unit |
| 1773 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1774 | local normalV = upV:Cross(rightV) |
| 1775 | local pos = Vector3.new(1.49, -1.5, 2.5) |
| 1776 | local cyl = Instance.new("Part") |
| 1777 | cyl.Shape = Enum.PartType.Cylinder |
| 1778 | cyl.Size = Vector3.new(0.1, 1.6, 1.6) |
| 1779 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1780 | cyl.BrickColor = BrickColor.new("Storm blue") |
| 1781 | cyl.Material = Enum.Material.Glacier |
| 1782 | cyl.MaterialVariant = "2022 Stud" |
| 1783 | cyl.Anchored = true; cyl.Parent = workspace |
| 1784 | local cuts = {} |
| 1785 | local hole = Instance.new("Part") |
| 1786 | hole.Shape = Enum.PartType.Cylinder |
| 1787 | hole.Size = Vector3.new(0.3, 1.2, 1.2) |
| 1788 | hole.CFrame = cyl.CFrame |
| 1789 | hole.BrickColor = BrickColor.new("Storm blue") |
| 1790 | hole.Material = Enum.Material.Glacier |
| 1791 | hole.MaterialVariant = "2022 Stud" |
| 1792 | hole.Anchored = true; hole.Parent = workspace |
| 1793 | table.insert(cuts, hole) |
| 1794 | local angBoxes = {} |
| 1795 | do |
| 1796 | local edgeDir = 1*rightV + 0*upV |
| 1797 | local edgePerp = 0*rightV + 1*upV |
| 1798 | local cut = Instance.new("Part") |
| 1799 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1800 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1801 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1802 | cut.Material = Enum.Material.Glacier |
| 1803 | cut.MaterialVariant = "2022 Stud" |
| 1804 | cut.Anchored = true; cut.Parent = workspace |
| 1805 | table.insert(angBoxes, cut) |
| 1806 | end |
| 1807 | do |
| 1808 | local edgeDir = -1*rightV + 0*upV |
| 1809 | local edgePerp = 0*rightV + -1*upV |
| 1810 | local cut = Instance.new("Part") |
| 1811 | cut.Size = Vector3.new(3.2, 0.3, 3.2) |
| 1812 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 1813 | cut.BrickColor = BrickColor.new("Storm blue") |
| 1814 | cut.Material = Enum.Material.Glacier |
| 1815 | cut.MaterialVariant = "2022 Stud" |
| 1816 | cut.Anchored = true; cut.Parent = workspace |
| 1817 | table.insert(angBoxes, cut) |
| 1818 | end |
| 1819 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1820 | if #cuts > 0 then |
| 1821 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1822 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1823 | if ok and result then |
| 1824 | cyl:Destroy() |
| 1825 | result.Name = "Scale_R_2_3"; result.Anchored = true; result.Parent = model |
| 1826 | else |
| 1827 | cyl.Name = "Scale_R_2_3"; cyl.Parent = model |
| 1828 | end |
| 1829 | else |
| 1830 | cyl.Name = "Scale_R_2_3"; cyl.Parent = model |
| 1831 | end |
| 1832 | end |
| 1833 | model.PrimaryPart = model:FindFirstChild("Body_Main") |
| 1834 | print("BlueFish built: " .. #model:GetChildren() .. " parts") |
Loading comments...