Loading model...
by Prime AirGhost · 9/21/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: ExtensionCord |
| 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 = "ExtensionCord" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Black"] = "2022 Glue", |
| 25 | ["Bright orange"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Universal", |
| 27 | ["Silver"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "Wrap_0" |
| 33 | p.Size = Vector3.new(5.001, 0.72, 0.72) |
| 34 | p.CFrame = CFrame.new(0, 3.15, 5.5) * CFrame.Angles(math.rad(0), math.rad(-36.8699), math.rad(1.14576)) |
| 35 | p.BrickColor = BrickColor.new("Bright orange") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Shape = Enum.PartType.Cylinder |
| 44 | p.Name = "Wrap_1" |
| 45 | p.Size = Vector3.new(6.12291, 0.68, 0.68) |
| 46 | p.CFrame = CFrame.new(5, 2.85, 6.5) * CFrame.Angles(math.rad(0), math.rad(9.46232), math.rad(-6.56468)) |
| 47 | p.BrickColor = BrickColor.new("Bright orange") |
| 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.Shape = Enum.PartType.Ball |
| 56 | p.Name = "WrapJoint_1" |
| 57 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 58 | p.CFrame = CFrame.new(2, 3.2, 7) |
| 59 | p.BrickColor = BrickColor.new("Bright orange") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Stud" |
| 62 | p.Anchored = true |
| 63 | p.Parent = model |
| 64 | end |
| 65 | do |
| 66 | local p = Instance.new("Part") |
| 67 | p.Shape = Enum.PartType.Cylinder |
| 68 | p.Name = "Wrap_2" |
| 69 | p.Size = Vector3.new(6.67083, 0.64, 0.64) |
| 70 | p.CFrame = CFrame.new(9.25, 1.75, 3) * CFrame.Angles(math.rad(0), math.rad(67.3801), math.rad(-12.9946)) |
| 71 | p.BrickColor = BrickColor.new("Bright orange") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Stud" |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Shape = Enum.PartType.Ball |
| 80 | p.Name = "WrapJoint_2" |
| 81 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 82 | p.CFrame = CFrame.new(8, 2.5, 6) |
| 83 | p.BrickColor = BrickColor.new("Bright orange") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Shape = Enum.PartType.Cylinder |
| 92 | p.Name = "Wrap_3" |
| 93 | p.Size = Vector3.new(6.20484, 0.68, 0.68) |
| 94 | p.CFrame = CFrame.new(10.25, 0.25, -3) * CFrame.Angles(math.rad(-180), math.rad(85.2364), math.rad(166.01)) |
| 95 | p.BrickColor = BrickColor.new("Bright orange") |
| 96 | p.Material = Enum.Material.Glacier |
| 97 | p.MaterialVariant = "2022 Stud" |
| 98 | p.Anchored = true |
| 99 | p.Parent = model |
| 100 | end |
| 101 | do |
| 102 | local p = Instance.new("Part") |
| 103 | p.Shape = Enum.PartType.Ball |
| 104 | p.Name = "WrapJoint_3" |
| 105 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 106 | p.CFrame = CFrame.new(10.5, 1, 0) |
| 107 | p.BrickColor = BrickColor.new("Bright orange") |
| 108 | p.Material = Enum.Material.Glacier |
| 109 | p.MaterialVariant = "2022 Stud" |
| 110 | p.Anchored = true |
| 111 | p.Parent = model |
| 112 | end |
| 113 | do |
| 114 | local p = Instance.new("Part") |
| 115 | p.Shape = Enum.PartType.Cylinder |
| 116 | p.Name = "Wrap_4" |
| 117 | p.Size = Vector3.new(4.5, 0.72, 0.72) |
| 118 | p.CFrame = CFrame.new(8.5, -1.25, -7.5) * CFrame.Angles(math.rad(-180), math.rad(45), math.rad(160.529)) |
| 119 | p.BrickColor = BrickColor.new("Bright orange") |
| 120 | p.Material = Enum.Material.Glacier |
| 121 | p.MaterialVariant = "2022 Stud" |
| 122 | p.Anchored = true |
| 123 | p.Parent = model |
| 124 | end |
| 125 | do |
| 126 | local p = Instance.new("Part") |
| 127 | p.Shape = Enum.PartType.Ball |
| 128 | p.Name = "WrapJoint_4" |
| 129 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 130 | p.CFrame = CFrame.new(10, -0.5, -6) |
| 131 | p.BrickColor = BrickColor.new("Bright orange") |
| 132 | p.Material = Enum.Material.Glacier |
| 133 | p.MaterialVariant = "2022 Stud" |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("Part") |
| 139 | p.Shape = Enum.PartType.Cylinder |
| 140 | p.Name = "Wrap_5" |
| 141 | p.Size = Vector3.new(3.08058, 0.76, 0.76) |
| 142 | p.CFrame = CFrame.new(5.5, -2.35, -9) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(166.866)) |
| 143 | p.BrickColor = BrickColor.new("Bright orange") |
| 144 | p.Material = Enum.Material.Glacier |
| 145 | p.MaterialVariant = "2022 Stud" |
| 146 | p.Anchored = true |
| 147 | p.Parent = model |
| 148 | end |
| 149 | do |
| 150 | local p = Instance.new("Part") |
| 151 | p.Shape = Enum.PartType.Ball |
| 152 | p.Name = "WrapJoint_5" |
| 153 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 154 | p.CFrame = CFrame.new(7, -2, -9) |
| 155 | p.BrickColor = BrickColor.new("Bright orange") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Stud" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Shape = Enum.PartType.Cylinder |
| 164 | p.Name = "MaleCable" |
| 165 | p.Size = Vector3.new(2.31517, 0.76, 0.76) |
| 166 | p.CFrame = CFrame.new(-1, 3.4, 4.5) * CFrame.Angles(math.rad(0), math.rad(-26.5651), math.rad(15.0203)) |
| 167 | p.BrickColor = BrickColor.new("Bright orange") |
| 168 | p.Material = Enum.Material.Glacier |
| 169 | p.MaterialVariant = "2022 Stud" |
| 170 | p.Anchored = true |
| 171 | p.Parent = model |
| 172 | end |
| 173 | do |
| 174 | local p = Instance.new("Part") |
| 175 | p.Shape = Enum.PartType.Ball |
| 176 | p.Name = "MaleCableJoint" |
| 177 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 178 | p.CFrame = CFrame.new(0, 3.7, 5) |
| 179 | p.BrickColor = BrickColor.new("Bright orange") |
| 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.Shape = Enum.PartType.Cylinder |
| 188 | p.Name = "MaleSR_Base" |
| 189 | p.Size = Vector3.new(1.53297, 1, 1) |
| 190 | p.CFrame = CFrame.new(0.75, 3.75, 5.15) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(3.74022)) |
| 191 | p.BrickColor = BrickColor.new("Black") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Glue" |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Shape = Enum.PartType.Cylinder |
| 200 | p.Name = "MaleSR_Rib_0" |
| 201 | p.Size = Vector3.new(0.122638, 1.11, 1.11) |
| 202 | p.CFrame = CFrame.new(0.15, 3.71, 5.03) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(3.74022)) |
| 203 | p.BrickColor = BrickColor.new("Black") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Glue" |
| 206 | p.Anchored = true |
| 207 | p.Parent = model |
| 208 | end |
| 209 | do |
| 210 | local p = Instance.new("Part") |
| 211 | p.Shape = Enum.PartType.Cylinder |
| 212 | p.Name = "MaleSR_Rib_1" |
| 213 | p.Size = Vector3.new(0.122638, 1.15, 1.15) |
| 214 | p.CFrame = CFrame.new(0.54, 3.736, 5.108) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(3.74022)) |
| 215 | p.BrickColor = BrickColor.new("Black") |
| 216 | p.Material = Enum.Material.Glacier |
| 217 | p.MaterialVariant = "2022 Glue" |
| 218 | p.Anchored = true |
| 219 | p.Parent = model |
| 220 | end |
| 221 | do |
| 222 | local p = Instance.new("Part") |
| 223 | p.Shape = Enum.PartType.Cylinder |
| 224 | p.Name = "MaleSR_Rib_2" |
| 225 | p.Size = Vector3.new(0.122638, 1.11, 1.11) |
| 226 | p.CFrame = CFrame.new(0.93, 3.762, 5.186) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(3.74022)) |
| 227 | p.BrickColor = BrickColor.new("Black") |
| 228 | p.Material = Enum.Material.Glacier |
| 229 | p.MaterialVariant = "2022 Glue" |
| 230 | p.Anchored = true |
| 231 | p.Parent = model |
| 232 | end |
| 233 | do |
| 234 | local p = Instance.new("Part") |
| 235 | p.Shape = Enum.PartType.Cylinder |
| 236 | p.Name = "MaleSR_Rib_3" |
| 237 | p.Size = Vector3.new(0.122638, 1.15, 1.15) |
| 238 | p.CFrame = CFrame.new(1.32, 3.788, 5.264) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(3.74022)) |
| 239 | p.BrickColor = BrickColor.new("Black") |
| 240 | p.Material = Enum.Material.Glacier |
| 241 | p.MaterialVariant = "2022 Glue" |
| 242 | p.Anchored = true |
| 243 | p.Parent = model |
| 244 | end |
| 245 | do |
| 246 | local p = Instance.new("Part") |
| 247 | p.Name = "MaleBody_1" |
| 248 | p.Size = Vector3.new(1.02103, 1.2, 1.4) |
| 249 | p.CFrame = CFrame.new(2, 3.825, 5.4) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(2.80691)) |
| 250 | p.BrickColor = BrickColor.new("Black") |
| 251 | p.Material = Enum.Material.Glacier |
| 252 | p.MaterialVariant = "2022 Glue" |
| 253 | p.Anchored = true |
| 254 | p.Parent = model |
| 255 | end |
| 256 | do |
| 257 | local p = Instance.new("Part") |
| 258 | p.Name = "MaleBody_2" |
| 259 | p.Size = Vector3.new(1.02103, 1.4, 1.8) |
| 260 | p.CFrame = CFrame.new(3, 3.875, 5.6) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(2.80691)) |
| 261 | p.BrickColor = BrickColor.new("Black") |
| 262 | p.Material = Enum.Material.Glacier |
| 263 | p.MaterialVariant = "2022 Glue" |
| 264 | p.Anchored = true |
| 265 | p.Parent = model |
| 266 | end |
| 267 | do |
| 268 | local p = Instance.new("Part") |
| 269 | p.Name = "Prong_L" |
| 270 | p.Size = Vector3.new(1.2, 0.3, 0.1) |
| 271 | p.CFrame = CFrame.new(3.99959, 4.14873, 6.28619) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(2.80691)) |
| 272 | p.BrickColor = BrickColor.new("Silver") |
| 273 | p.Material = Enum.Material.Glacier |
| 274 | p.MaterialVariant = "2022 Stud" |
| 275 | p.Anchored = true |
| 276 | p.Parent = model |
| 277 | end |
| 278 | do |
| 279 | local p = Instance.new("Part") |
| 280 | p.Name = "Prong_R" |
| 281 | p.Size = Vector3.new(1.2, 0.3, 0.1) |
| 282 | p.CFrame = CFrame.new(4.15648, 4.14873, 5.50173) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(2.80691)) |
| 283 | p.BrickColor = BrickColor.new("Silver") |
| 284 | p.Material = Enum.Material.Glacier |
| 285 | p.MaterialVariant = "2022 Stud" |
| 286 | p.Anchored = true |
| 287 | p.Parent = model |
| 288 | end |
| 289 | do |
| 290 | local p = Instance.new("Part") |
| 291 | p.Shape = Enum.PartType.Cylinder |
| 292 | p.Name = "Prong_G" |
| 293 | p.Size = Vector3.new(1.2, 0.25, 0.25) |
| 294 | p.CFrame = CFrame.new(4.14123, 3.6317, 5.82824) * CFrame.Angles(math.rad(0), math.rad(-11.3099), math.rad(2.80691)) |
| 295 | p.BrickColor = BrickColor.new("Silver") |
| 296 | p.Material = Enum.Material.Glacier |
| 297 | p.MaterialVariant = "2022 Stud" |
| 298 | p.Anchored = true |
| 299 | p.Parent = model |
| 300 | end |
| 301 | do |
| 302 | local p = Instance.new("Part") |
| 303 | p.Shape = Enum.PartType.Cylinder |
| 304 | p.Name = "FemCable" |
| 305 | p.Size = Vector3.new(2.27156, 0.72, 0.72) |
| 306 | p.CFrame = CFrame.new(3, -2.9, -9.5) * CFrame.Angles(math.rad(-180), math.rad(26.5651), math.rad(169.858)) |
| 307 | p.BrickColor = BrickColor.new("Bright orange") |
| 308 | p.Material = Enum.Material.Glacier |
| 309 | p.MaterialVariant = "2022 Stud" |
| 310 | p.Anchored = true |
| 311 | p.Parent = model |
| 312 | end |
| 313 | do |
| 314 | local p = Instance.new("Part") |
| 315 | p.Shape = Enum.PartType.Ball |
| 316 | p.Name = "FemCableJoint" |
| 317 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 318 | p.CFrame = CFrame.new(2, -3.1, -10) |
| 319 | p.BrickColor = BrickColor.new("Bright orange") |
| 320 | p.Material = Enum.Material.Glacier |
| 321 | p.MaterialVariant = "2022 Stud" |
| 322 | p.Anchored = true |
| 323 | p.Parent = model |
| 324 | end |
| 325 | do |
| 326 | local p = Instance.new("Part") |
| 327 | p.Shape = Enum.PartType.Cylinder |
| 328 | p.Name = "FemSR_Base" |
| 329 | p.Size = Vector3.new(1.5, 1, 1) |
| 330 | p.CFrame = CFrame.new(1.29, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 331 | p.BrickColor = BrickColor.new("Black") |
| 332 | p.Material = Enum.Material.Glacier |
| 333 | p.MaterialVariant = "2022 Glue" |
| 334 | p.Anchored = true |
| 335 | p.Parent = model |
| 336 | end |
| 337 | do |
| 338 | local p = Instance.new("Part") |
| 339 | p.Shape = Enum.PartType.Cylinder |
| 340 | p.Name = "FemSR_Rib_0" |
| 341 | p.Size = Vector3.new(0.12, 1.15, 1.15) |
| 342 | p.CFrame = CFrame.new(1.85, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 343 | p.BrickColor = BrickColor.new("Black") |
| 344 | p.Material = Enum.Material.Glacier |
| 345 | p.MaterialVariant = "2022 Glue" |
| 346 | p.Anchored = true |
| 347 | p.Parent = model |
| 348 | end |
| 349 | do |
| 350 | local p = Instance.new("Part") |
| 351 | p.Shape = Enum.PartType.Cylinder |
| 352 | p.Name = "FemSR_Rib_1" |
| 353 | p.Size = Vector3.new(0.12, 1.15, 1.15) |
| 354 | p.CFrame = CFrame.new(1.46, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 355 | p.BrickColor = BrickColor.new("Black") |
| 356 | p.Material = Enum.Material.Glacier |
| 357 | p.MaterialVariant = "2022 Glue" |
| 358 | p.Anchored = true |
| 359 | p.Parent = model |
| 360 | end |
| 361 | do |
| 362 | local p = Instance.new("Part") |
| 363 | p.Shape = Enum.PartType.Cylinder |
| 364 | p.Name = "FemSR_Rib_2" |
| 365 | p.Size = Vector3.new(0.12, 1.15, 1.15) |
| 366 | p.CFrame = CFrame.new(1.07, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 367 | p.BrickColor = BrickColor.new("Black") |
| 368 | p.Material = Enum.Material.Glacier |
| 369 | p.MaterialVariant = "2022 Glue" |
| 370 | p.Anchored = true |
| 371 | p.Parent = model |
| 372 | end |
| 373 | do |
| 374 | local p = Instance.new("Part") |
| 375 | p.Shape = Enum.PartType.Cylinder |
| 376 | p.Name = "FemSR_Rib_3" |
| 377 | p.Size = Vector3.new(0.12, 1.15, 1.15) |
| 378 | p.CFrame = CFrame.new(0.68, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 379 | p.BrickColor = BrickColor.new("Black") |
| 380 | p.Material = Enum.Material.Glacier |
| 381 | p.MaterialVariant = "2022 Glue" |
| 382 | p.Anchored = true |
| 383 | p.Parent = model |
| 384 | end |
| 385 | do |
| 386 | local p = Instance.new("Part") |
| 387 | p.Name = "FemBody_1" |
| 388 | p.Size = Vector3.new(1, 1.4, 1.6) |
| 389 | p.CFrame = CFrame.new(0, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 390 | p.BrickColor = BrickColor.new("Black") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Glue" |
| 393 | p.Anchored = true |
| 394 | p.Parent = model |
| 395 | end |
| 396 | do |
| 397 | local p = Instance.new("Part") |
| 398 | p.Name = "FemBody_2" |
| 399 | p.Size = Vector3.new(1, 1.8, 2) |
| 400 | p.CFrame = CFrame.new(-1, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 401 | p.BrickColor = BrickColor.new("Black") |
| 402 | p.Material = Enum.Material.Glacier |
| 403 | p.MaterialVariant = "2022 Glue" |
| 404 | p.Anchored = true |
| 405 | p.Parent = model |
| 406 | end |
| 407 | do |
| 408 | local p = Instance.new("Part") |
| 409 | p.Name = "FemBody_3" |
| 410 | p.Size = Vector3.new(1, 1.4, 1.6) |
| 411 | p.CFrame = CFrame.new(-2, -3.1, -10) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-180)) |
| 412 | p.BrickColor = BrickColor.new("Black") |
| 413 | p.Material = Enum.Material.Glacier |
| 414 | p.MaterialVariant = "2022 Glue" |
| 415 | p.Anchored = true |
| 416 | p.Parent = model |
| 417 | end |
| 418 | do |
| 419 | local p = Instance.new("Part") |
| 420 | p.Name = "FemSlot_L" |
| 421 | p.Size = Vector3.new(0.05, 0.4, 0.1) |
| 422 | p.CFrame = CFrame.new(-2.51, -2.9, -10.4) |
| 423 | p.BrickColor = BrickColor.new("Really black") |
| 424 | p.Material = Enum.Material.Glacier |
| 425 | p.MaterialVariant = "2022 Universal" |
| 426 | p.Anchored = true |
| 427 | p.Parent = model |
| 428 | end |
| 429 | do |
| 430 | local p = Instance.new("Part") |
| 431 | p.Name = "FemSlot_R" |
| 432 | p.Size = Vector3.new(0.05, 0.4, 0.1) |
| 433 | p.CFrame = CFrame.new(-2.51, -2.9, -9.6) |
| 434 | p.BrickColor = BrickColor.new("Really black") |
| 435 | p.Material = Enum.Material.Glacier |
| 436 | p.MaterialVariant = "2022 Universal" |
| 437 | p.Anchored = true |
| 438 | p.Parent = model |
| 439 | end |
| 440 | do |
| 441 | local p = Instance.new("Part") |
| 442 | p.Shape = Enum.PartType.Cylinder |
| 443 | p.Name = "FemSlot_G" |
| 444 | p.Size = Vector3.new(0.05, 0.3, 0.3) |
| 445 | p.CFrame = CFrame.new(-2.55, -3.5, -10) |
| 446 | p.BrickColor = BrickColor.new("Really black") |
| 447 | p.Material = Enum.Material.Glacier |
| 448 | p.MaterialVariant = "2022 Universal" |
| 449 | p.Anchored = true |
| 450 | p.Parent = model |
| 451 | end |
| 452 | do |
| 453 | local rightV = Vector3.new(1,0,0).Unit |
| 454 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 455 | local normalV = upV:Cross(rightV) |
| 456 | local pos = Vector3.new(0, -2.74, 0.04) |
| 457 | local cyl = Instance.new("Part") |
| 458 | cyl.Shape = Enum.PartType.Cylinder |
| 459 | cyl.Size = Vector3.new(0.8, 9.44, 9.44) |
| 460 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 461 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 462 | cyl.Material = Enum.Material.Glacier |
| 463 | cyl.MaterialVariant = "2022 Stud" |
| 464 | cyl.Anchored = true; cyl.Parent = workspace |
| 465 | local cuts = {} |
| 466 | local hole = Instance.new("Part") |
| 467 | hole.Shape = Enum.PartType.Cylinder |
| 468 | hole.Size = Vector3.new(1, 7.84, 7.84) |
| 469 | hole.CFrame = cyl.CFrame |
| 470 | hole.BrickColor = BrickColor.new("Bright orange") |
| 471 | hole.Material = Enum.Material.Glacier |
| 472 | hole.MaterialVariant = "2022 Stud" |
| 473 | hole.Anchored = true; hole.Parent = workspace |
| 474 | table.insert(cuts, hole) |
| 475 | local angBoxes = {} |
| 476 | do |
| 477 | local edgeDir = 1*rightV + 0*upV |
| 478 | local edgePerp = 0*rightV + 1*upV |
| 479 | local cut = Instance.new("Part") |
| 480 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 481 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.44 * edgePerp, edgeDir, normalV) |
| 482 | cut.BrickColor = BrickColor.new("Bright orange") |
| 483 | cut.Material = Enum.Material.Glacier |
| 484 | cut.MaterialVariant = "2022 Stud" |
| 485 | cut.Anchored = true; cut.Parent = workspace |
| 486 | table.insert(angBoxes, cut) |
| 487 | end |
| 488 | do |
| 489 | local edgeDir = -1*rightV + 0*upV |
| 490 | local edgePerp = 0*rightV + -1*upV |
| 491 | local cut = Instance.new("Part") |
| 492 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 493 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.44 * edgePerp, edgeDir, normalV) |
| 494 | cut.BrickColor = BrickColor.new("Bright orange") |
| 495 | cut.Material = Enum.Material.Glacier |
| 496 | cut.MaterialVariant = "2022 Stud" |
| 497 | cut.Anchored = true; cut.Parent = workspace |
| 498 | table.insert(angBoxes, cut) |
| 499 | end |
| 500 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 501 | if #cuts > 0 then |
| 502 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 503 | for _, c in ipairs(cuts) do c:Destroy() end |
| 504 | if ok and result then |
| 505 | cyl:Destroy() |
| 506 | result.Name = "Coil_0_0_A"; result.Anchored = true; result.Parent = model |
| 507 | else |
| 508 | cyl.Name = "Coil_0_0_A"; cyl.Parent = model |
| 509 | end |
| 510 | else |
| 511 | cyl.Name = "Coil_0_0_A"; cyl.Parent = model |
| 512 | end |
| 513 | end |
| 514 | do |
| 515 | local rightV = Vector3.new(1,0,0).Unit |
| 516 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 517 | local normalV = upV:Cross(rightV) |
| 518 | local pos = Vector3.new(0, -2.74, 0) |
| 519 | local cyl = Instance.new("Part") |
| 520 | cyl.Shape = Enum.PartType.Cylinder |
| 521 | cyl.Size = Vector3.new(0.8, 9.44, 9.44) |
| 522 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 523 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 524 | cyl.Material = Enum.Material.Glacier |
| 525 | cyl.MaterialVariant = "2022 Stud" |
| 526 | cyl.Anchored = true; cyl.Parent = workspace |
| 527 | local cuts = {} |
| 528 | local hole = Instance.new("Part") |
| 529 | hole.Shape = Enum.PartType.Cylinder |
| 530 | hole.Size = Vector3.new(1, 7.84, 7.84) |
| 531 | hole.CFrame = cyl.CFrame |
| 532 | hole.BrickColor = BrickColor.new("Bright orange") |
| 533 | hole.Material = Enum.Material.Glacier |
| 534 | hole.MaterialVariant = "2022 Stud" |
| 535 | hole.Anchored = true; hole.Parent = workspace |
| 536 | table.insert(cuts, hole) |
| 537 | local angBoxes = {} |
| 538 | do |
| 539 | local edgeDir = -1*rightV + 0*upV |
| 540 | local edgePerp = 0*rightV + -1*upV |
| 541 | local cut = Instance.new("Part") |
| 542 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 543 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.44 * edgePerp, edgeDir, normalV) |
| 544 | cut.BrickColor = BrickColor.new("Bright orange") |
| 545 | cut.Material = Enum.Material.Glacier |
| 546 | cut.MaterialVariant = "2022 Stud" |
| 547 | cut.Anchored = true; cut.Parent = workspace |
| 548 | table.insert(angBoxes, cut) |
| 549 | end |
| 550 | do |
| 551 | local edgeDir = 1*rightV + 0*upV |
| 552 | local edgePerp = 0*rightV + 1*upV |
| 553 | local cut = Instance.new("Part") |
| 554 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 555 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.44 * edgePerp, edgeDir, normalV) |
| 556 | cut.BrickColor = BrickColor.new("Bright orange") |
| 557 | cut.Material = Enum.Material.Glacier |
| 558 | cut.MaterialVariant = "2022 Stud" |
| 559 | cut.Anchored = true; cut.Parent = workspace |
| 560 | table.insert(angBoxes, cut) |
| 561 | end |
| 562 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 563 | if #cuts > 0 then |
| 564 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 565 | for _, c in ipairs(cuts) do c:Destroy() end |
| 566 | if ok and result then |
| 567 | cyl:Destroy() |
| 568 | result.Name = "Coil_0_0_B"; result.Anchored = true; result.Parent = model |
| 569 | else |
| 570 | cyl.Name = "Coil_0_0_B"; cyl.Parent = model |
| 571 | end |
| 572 | else |
| 573 | cyl.Name = "Coil_0_0_B"; cyl.Parent = model |
| 574 | end |
| 575 | end |
| 576 | do |
| 577 | local rightV = Vector3.new(1,0,0).Unit |
| 578 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 579 | local normalV = upV:Cross(rightV) |
| 580 | local pos = Vector3.new(0, -2.74, 0.04) |
| 581 | local cyl = Instance.new("Part") |
| 582 | cyl.Shape = Enum.PartType.Cylinder |
| 583 | cyl.Size = Vector3.new(0.8, 11.4, 11.4) |
| 584 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 585 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 586 | cyl.Material = Enum.Material.Glacier |
| 587 | cyl.MaterialVariant = "2022 Stud" |
| 588 | cyl.Anchored = true; cyl.Parent = workspace |
| 589 | local cuts = {} |
| 590 | local hole = Instance.new("Part") |
| 591 | hole.Shape = Enum.PartType.Cylinder |
| 592 | hole.Size = Vector3.new(1, 9.8, 9.8) |
| 593 | hole.CFrame = cyl.CFrame |
| 594 | hole.BrickColor = BrickColor.new("Bright orange") |
| 595 | hole.Material = Enum.Material.Glacier |
| 596 | hole.MaterialVariant = "2022 Stud" |
| 597 | hole.Anchored = true; hole.Parent = workspace |
| 598 | table.insert(cuts, hole) |
| 599 | local angBoxes = {} |
| 600 | do |
| 601 | local edgeDir = 1*rightV + 0*upV |
| 602 | local edgePerp = 0*rightV + 1*upV |
| 603 | local cut = Instance.new("Part") |
| 604 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 605 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.4 * edgePerp, edgeDir, normalV) |
| 606 | cut.BrickColor = BrickColor.new("Bright orange") |
| 607 | cut.Material = Enum.Material.Glacier |
| 608 | cut.MaterialVariant = "2022 Stud" |
| 609 | cut.Anchored = true; cut.Parent = workspace |
| 610 | table.insert(angBoxes, cut) |
| 611 | end |
| 612 | do |
| 613 | local edgeDir = -1*rightV + 0*upV |
| 614 | local edgePerp = 0*rightV + -1*upV |
| 615 | local cut = Instance.new("Part") |
| 616 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 617 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.4 * edgePerp, edgeDir, normalV) |
| 618 | cut.BrickColor = BrickColor.new("Bright orange") |
| 619 | cut.Material = Enum.Material.Glacier |
| 620 | cut.MaterialVariant = "2022 Stud" |
| 621 | cut.Anchored = true; cut.Parent = workspace |
| 622 | table.insert(angBoxes, cut) |
| 623 | end |
| 624 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 625 | if #cuts > 0 then |
| 626 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 627 | for _, c in ipairs(cuts) do c:Destroy() end |
| 628 | if ok and result then |
| 629 | cyl:Destroy() |
| 630 | result.Name = "Coil_0_1_A"; result.Anchored = true; result.Parent = model |
| 631 | else |
| 632 | cyl.Name = "Coil_0_1_A"; cyl.Parent = model |
| 633 | end |
| 634 | else |
| 635 | cyl.Name = "Coil_0_1_A"; cyl.Parent = model |
| 636 | end |
| 637 | end |
| 638 | do |
| 639 | local rightV = Vector3.new(1,0,0).Unit |
| 640 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 641 | local normalV = upV:Cross(rightV) |
| 642 | local pos = Vector3.new(0, -2.78, 0) |
| 643 | local cyl = Instance.new("Part") |
| 644 | cyl.Shape = Enum.PartType.Cylinder |
| 645 | cyl.Size = Vector3.new(0.8, 11.4, 11.4) |
| 646 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 647 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 648 | cyl.Material = Enum.Material.Glacier |
| 649 | cyl.MaterialVariant = "2022 Stud" |
| 650 | cyl.Anchored = true; cyl.Parent = workspace |
| 651 | local cuts = {} |
| 652 | local hole = Instance.new("Part") |
| 653 | hole.Shape = Enum.PartType.Cylinder |
| 654 | hole.Size = Vector3.new(1, 9.8, 9.8) |
| 655 | hole.CFrame = cyl.CFrame |
| 656 | hole.BrickColor = BrickColor.new("Bright orange") |
| 657 | hole.Material = Enum.Material.Glacier |
| 658 | hole.MaterialVariant = "2022 Stud" |
| 659 | hole.Anchored = true; hole.Parent = workspace |
| 660 | table.insert(cuts, hole) |
| 661 | local angBoxes = {} |
| 662 | do |
| 663 | local edgeDir = -1*rightV + 0*upV |
| 664 | local edgePerp = 0*rightV + -1*upV |
| 665 | local cut = Instance.new("Part") |
| 666 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 667 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.4 * edgePerp, edgeDir, normalV) |
| 668 | cut.BrickColor = BrickColor.new("Bright orange") |
| 669 | cut.Material = Enum.Material.Glacier |
| 670 | cut.MaterialVariant = "2022 Stud" |
| 671 | cut.Anchored = true; cut.Parent = workspace |
| 672 | table.insert(angBoxes, cut) |
| 673 | end |
| 674 | do |
| 675 | local edgeDir = 1*rightV + 0*upV |
| 676 | local edgePerp = 0*rightV + 1*upV |
| 677 | local cut = Instance.new("Part") |
| 678 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 679 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.4 * edgePerp, edgeDir, normalV) |
| 680 | cut.BrickColor = BrickColor.new("Bright orange") |
| 681 | cut.Material = Enum.Material.Glacier |
| 682 | cut.MaterialVariant = "2022 Stud" |
| 683 | cut.Anchored = true; cut.Parent = workspace |
| 684 | table.insert(angBoxes, cut) |
| 685 | end |
| 686 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 687 | if #cuts > 0 then |
| 688 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 689 | for _, c in ipairs(cuts) do c:Destroy() end |
| 690 | if ok and result then |
| 691 | cyl:Destroy() |
| 692 | result.Name = "Coil_0_1_B"; result.Anchored = true; result.Parent = model |
| 693 | else |
| 694 | cyl.Name = "Coil_0_1_B"; cyl.Parent = model |
| 695 | end |
| 696 | else |
| 697 | cyl.Name = "Coil_0_1_B"; cyl.Parent = model |
| 698 | end |
| 699 | end |
| 700 | do |
| 701 | local rightV = Vector3.new(1,0,0).Unit |
| 702 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 703 | local normalV = upV:Cross(rightV) |
| 704 | local pos = Vector3.new(0, -2.7, 0.12) |
| 705 | local cyl = Instance.new("Part") |
| 706 | cyl.Shape = Enum.PartType.Cylinder |
| 707 | cyl.Size = Vector3.new(0.8, 13.36, 13.36) |
| 708 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 709 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 710 | cyl.Material = Enum.Material.Glacier |
| 711 | cyl.MaterialVariant = "2022 Stud" |
| 712 | cyl.Anchored = true; cyl.Parent = workspace |
| 713 | local cuts = {} |
| 714 | local hole = Instance.new("Part") |
| 715 | hole.Shape = Enum.PartType.Cylinder |
| 716 | hole.Size = Vector3.new(1, 11.76, 11.76) |
| 717 | hole.CFrame = cyl.CFrame |
| 718 | hole.BrickColor = BrickColor.new("Bright orange") |
| 719 | hole.Material = Enum.Material.Glacier |
| 720 | hole.MaterialVariant = "2022 Stud" |
| 721 | hole.Anchored = true; hole.Parent = workspace |
| 722 | table.insert(cuts, hole) |
| 723 | local angBoxes = {} |
| 724 | do |
| 725 | local edgeDir = 1*rightV + 0*upV |
| 726 | local edgePerp = 0*rightV + 1*upV |
| 727 | local cut = Instance.new("Part") |
| 728 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 729 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.36 * edgePerp, edgeDir, normalV) |
| 730 | cut.BrickColor = BrickColor.new("Bright orange") |
| 731 | cut.Material = Enum.Material.Glacier |
| 732 | cut.MaterialVariant = "2022 Stud" |
| 733 | cut.Anchored = true; cut.Parent = workspace |
| 734 | table.insert(angBoxes, cut) |
| 735 | end |
| 736 | do |
| 737 | local edgeDir = -1*rightV + 0*upV |
| 738 | local edgePerp = 0*rightV + -1*upV |
| 739 | local cut = Instance.new("Part") |
| 740 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 741 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.36 * edgePerp, edgeDir, normalV) |
| 742 | cut.BrickColor = BrickColor.new("Bright orange") |
| 743 | cut.Material = Enum.Material.Glacier |
| 744 | cut.MaterialVariant = "2022 Stud" |
| 745 | cut.Anchored = true; cut.Parent = workspace |
| 746 | table.insert(angBoxes, cut) |
| 747 | end |
| 748 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 749 | if #cuts > 0 then |
| 750 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 751 | for _, c in ipairs(cuts) do c:Destroy() end |
| 752 | if ok and result then |
| 753 | cyl:Destroy() |
| 754 | result.Name = "Coil_0_2_A"; result.Anchored = true; result.Parent = model |
| 755 | else |
| 756 | cyl.Name = "Coil_0_2_A"; cyl.Parent = model |
| 757 | end |
| 758 | else |
| 759 | cyl.Name = "Coil_0_2_A"; cyl.Parent = model |
| 760 | end |
| 761 | end |
| 762 | do |
| 763 | local rightV = Vector3.new(1,0,0).Unit |
| 764 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 765 | local normalV = upV:Cross(rightV) |
| 766 | local pos = Vector3.new(0, -2.74, 0.08) |
| 767 | local cyl = Instance.new("Part") |
| 768 | cyl.Shape = Enum.PartType.Cylinder |
| 769 | cyl.Size = Vector3.new(0.8, 13.36, 13.36) |
| 770 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 771 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 772 | cyl.Material = Enum.Material.Glacier |
| 773 | cyl.MaterialVariant = "2022 Stud" |
| 774 | cyl.Anchored = true; cyl.Parent = workspace |
| 775 | local cuts = {} |
| 776 | local hole = Instance.new("Part") |
| 777 | hole.Shape = Enum.PartType.Cylinder |
| 778 | hole.Size = Vector3.new(1, 11.76, 11.76) |
| 779 | hole.CFrame = cyl.CFrame |
| 780 | hole.BrickColor = BrickColor.new("Bright orange") |
| 781 | hole.Material = Enum.Material.Glacier |
| 782 | hole.MaterialVariant = "2022 Stud" |
| 783 | hole.Anchored = true; hole.Parent = workspace |
| 784 | table.insert(cuts, hole) |
| 785 | local angBoxes = {} |
| 786 | do |
| 787 | local edgeDir = -1*rightV + 0*upV |
| 788 | local edgePerp = 0*rightV + -1*upV |
| 789 | local cut = Instance.new("Part") |
| 790 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 791 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.36 * edgePerp, edgeDir, normalV) |
| 792 | cut.BrickColor = BrickColor.new("Bright orange") |
| 793 | cut.Material = Enum.Material.Glacier |
| 794 | cut.MaterialVariant = "2022 Stud" |
| 795 | cut.Anchored = true; cut.Parent = workspace |
| 796 | table.insert(angBoxes, cut) |
| 797 | end |
| 798 | do |
| 799 | local edgeDir = 1*rightV + 0*upV |
| 800 | local edgePerp = 0*rightV + 1*upV |
| 801 | local cut = Instance.new("Part") |
| 802 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 803 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.36 * edgePerp, edgeDir, normalV) |
| 804 | cut.BrickColor = BrickColor.new("Bright orange") |
| 805 | cut.Material = Enum.Material.Glacier |
| 806 | cut.MaterialVariant = "2022 Stud" |
| 807 | cut.Anchored = true; cut.Parent = workspace |
| 808 | table.insert(angBoxes, cut) |
| 809 | end |
| 810 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 811 | if #cuts > 0 then |
| 812 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 813 | for _, c in ipairs(cuts) do c:Destroy() end |
| 814 | if ok and result then |
| 815 | cyl:Destroy() |
| 816 | result.Name = "Coil_0_2_B"; result.Anchored = true; result.Parent = model |
| 817 | else |
| 818 | cyl.Name = "Coil_0_2_B"; cyl.Parent = model |
| 819 | end |
| 820 | else |
| 821 | cyl.Name = "Coil_0_2_B"; cyl.Parent = model |
| 822 | end |
| 823 | end |
| 824 | do |
| 825 | local rightV = Vector3.new(1,0,0).Unit |
| 826 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 827 | local normalV = upV:Cross(rightV) |
| 828 | local pos = Vector3.new(0, -2.7, 0.04) |
| 829 | local cyl = Instance.new("Part") |
| 830 | cyl.Shape = Enum.PartType.Cylinder |
| 831 | cyl.Size = Vector3.new(0.8, 14.92, 14.92) |
| 832 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 833 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 834 | cyl.Material = Enum.Material.Glacier |
| 835 | cyl.MaterialVariant = "2022 Stud" |
| 836 | cyl.Anchored = true; cyl.Parent = workspace |
| 837 | local cuts = {} |
| 838 | local hole = Instance.new("Part") |
| 839 | hole.Shape = Enum.PartType.Cylinder |
| 840 | hole.Size = Vector3.new(1, 13.32, 13.32) |
| 841 | hole.CFrame = cyl.CFrame |
| 842 | hole.BrickColor = BrickColor.new("Bright orange") |
| 843 | hole.Material = Enum.Material.Glacier |
| 844 | hole.MaterialVariant = "2022 Stud" |
| 845 | hole.Anchored = true; hole.Parent = workspace |
| 846 | table.insert(cuts, hole) |
| 847 | local angBoxes = {} |
| 848 | do |
| 849 | local edgeDir = 1*rightV + 0*upV |
| 850 | local edgePerp = 0*rightV + 1*upV |
| 851 | local cut = Instance.new("Part") |
| 852 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 853 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 14.92 * edgePerp, edgeDir, normalV) |
| 854 | cut.BrickColor = BrickColor.new("Bright orange") |
| 855 | cut.Material = Enum.Material.Glacier |
| 856 | cut.MaterialVariant = "2022 Stud" |
| 857 | cut.Anchored = true; cut.Parent = workspace |
| 858 | table.insert(angBoxes, cut) |
| 859 | end |
| 860 | do |
| 861 | local edgeDir = -1*rightV + 0*upV |
| 862 | local edgePerp = 0*rightV + -1*upV |
| 863 | local cut = Instance.new("Part") |
| 864 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 865 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 14.92 * edgePerp, edgeDir, normalV) |
| 866 | cut.BrickColor = BrickColor.new("Bright orange") |
| 867 | cut.Material = Enum.Material.Glacier |
| 868 | cut.MaterialVariant = "2022 Stud" |
| 869 | cut.Anchored = true; cut.Parent = workspace |
| 870 | table.insert(angBoxes, cut) |
| 871 | end |
| 872 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 873 | if #cuts > 0 then |
| 874 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 875 | for _, c in ipairs(cuts) do c:Destroy() end |
| 876 | if ok and result then |
| 877 | cyl:Destroy() |
| 878 | result.Name = "Coil_0_3_A"; result.Anchored = true; result.Parent = model |
| 879 | else |
| 880 | cyl.Name = "Coil_0_3_A"; cyl.Parent = model |
| 881 | end |
| 882 | else |
| 883 | cyl.Name = "Coil_0_3_A"; cyl.Parent = model |
| 884 | end |
| 885 | end |
| 886 | do |
| 887 | local rightV = Vector3.new(1,0,0).Unit |
| 888 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 889 | local normalV = upV:Cross(rightV) |
| 890 | local pos = Vector3.new(0, -2.74, 0) |
| 891 | local cyl = Instance.new("Part") |
| 892 | cyl.Shape = Enum.PartType.Cylinder |
| 893 | cyl.Size = Vector3.new(0.8, 14.92, 14.92) |
| 894 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 895 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 896 | cyl.Material = Enum.Material.Glacier |
| 897 | cyl.MaterialVariant = "2022 Stud" |
| 898 | cyl.Anchored = true; cyl.Parent = workspace |
| 899 | local cuts = {} |
| 900 | local hole = Instance.new("Part") |
| 901 | hole.Shape = Enum.PartType.Cylinder |
| 902 | hole.Size = Vector3.new(1, 13.32, 13.32) |
| 903 | hole.CFrame = cyl.CFrame |
| 904 | hole.BrickColor = BrickColor.new("Bright orange") |
| 905 | hole.Material = Enum.Material.Glacier |
| 906 | hole.MaterialVariant = "2022 Stud" |
| 907 | hole.Anchored = true; hole.Parent = workspace |
| 908 | table.insert(cuts, hole) |
| 909 | local angBoxes = {} |
| 910 | do |
| 911 | local edgeDir = -1*rightV + 0*upV |
| 912 | local edgePerp = 0*rightV + -1*upV |
| 913 | local cut = Instance.new("Part") |
| 914 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 915 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 14.92 * edgePerp, edgeDir, normalV) |
| 916 | cut.BrickColor = BrickColor.new("Bright orange") |
| 917 | cut.Material = Enum.Material.Glacier |
| 918 | cut.MaterialVariant = "2022 Stud" |
| 919 | cut.Anchored = true; cut.Parent = workspace |
| 920 | table.insert(angBoxes, cut) |
| 921 | end |
| 922 | do |
| 923 | local edgeDir = 1*rightV + 0*upV |
| 924 | local edgePerp = 0*rightV + 1*upV |
| 925 | local cut = Instance.new("Part") |
| 926 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 927 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 14.92 * edgePerp, edgeDir, normalV) |
| 928 | cut.BrickColor = BrickColor.new("Bright orange") |
| 929 | cut.Material = Enum.Material.Glacier |
| 930 | cut.MaterialVariant = "2022 Stud" |
| 931 | cut.Anchored = true; cut.Parent = workspace |
| 932 | table.insert(angBoxes, cut) |
| 933 | end |
| 934 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 935 | if #cuts > 0 then |
| 936 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 937 | for _, c in ipairs(cuts) do c:Destroy() end |
| 938 | if ok and result then |
| 939 | cyl:Destroy() |
| 940 | result.Name = "Coil_0_3_B"; result.Anchored = true; result.Parent = model |
| 941 | else |
| 942 | cyl.Name = "Coil_0_3_B"; cyl.Parent = model |
| 943 | end |
| 944 | else |
| 945 | cyl.Name = "Coil_0_3_B"; cyl.Parent = model |
| 946 | end |
| 947 | end |
| 948 | do |
| 949 | local rightV = Vector3.new(1,0,0).Unit |
| 950 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 951 | local normalV = upV:Cross(rightV) |
| 952 | local pos = Vector3.new(0, -2.7, 0.12) |
| 953 | local cyl = Instance.new("Part") |
| 954 | cyl.Shape = Enum.PartType.Cylinder |
| 955 | cyl.Size = Vector3.new(0.8, 16.88, 16.88) |
| 956 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 957 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 958 | cyl.Material = Enum.Material.Glacier |
| 959 | cyl.MaterialVariant = "2022 Stud" |
| 960 | cyl.Anchored = true; cyl.Parent = workspace |
| 961 | local cuts = {} |
| 962 | local hole = Instance.new("Part") |
| 963 | hole.Shape = Enum.PartType.Cylinder |
| 964 | hole.Size = Vector3.new(1, 15.28, 15.28) |
| 965 | hole.CFrame = cyl.CFrame |
| 966 | hole.BrickColor = BrickColor.new("Bright orange") |
| 967 | hole.Material = Enum.Material.Glacier |
| 968 | hole.MaterialVariant = "2022 Stud" |
| 969 | hole.Anchored = true; hole.Parent = workspace |
| 970 | table.insert(cuts, hole) |
| 971 | local angBoxes = {} |
| 972 | do |
| 973 | local edgeDir = 1*rightV + 0*upV |
| 974 | local edgePerp = 0*rightV + 1*upV |
| 975 | local cut = Instance.new("Part") |
| 976 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 977 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.88 * edgePerp, edgeDir, normalV) |
| 978 | cut.BrickColor = BrickColor.new("Bright orange") |
| 979 | cut.Material = Enum.Material.Glacier |
| 980 | cut.MaterialVariant = "2022 Stud" |
| 981 | cut.Anchored = true; cut.Parent = workspace |
| 982 | table.insert(angBoxes, cut) |
| 983 | end |
| 984 | do |
| 985 | local edgeDir = -1*rightV + 0*upV |
| 986 | local edgePerp = 0*rightV + -1*upV |
| 987 | local cut = Instance.new("Part") |
| 988 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 989 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.88 * edgePerp, edgeDir, normalV) |
| 990 | cut.BrickColor = BrickColor.new("Bright orange") |
| 991 | cut.Material = Enum.Material.Glacier |
| 992 | cut.MaterialVariant = "2022 Stud" |
| 993 | cut.Anchored = true; cut.Parent = workspace |
| 994 | table.insert(angBoxes, cut) |
| 995 | end |
| 996 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 997 | if #cuts > 0 then |
| 998 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 999 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1000 | if ok and result then |
| 1001 | cyl:Destroy() |
| 1002 | result.Name = "Coil_0_4_A"; result.Anchored = true; result.Parent = model |
| 1003 | else |
| 1004 | cyl.Name = "Coil_0_4_A"; cyl.Parent = model |
| 1005 | end |
| 1006 | else |
| 1007 | cyl.Name = "Coil_0_4_A"; cyl.Parent = model |
| 1008 | end |
| 1009 | end |
| 1010 | do |
| 1011 | local rightV = Vector3.new(1,0,0).Unit |
| 1012 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1013 | local normalV = upV:Cross(rightV) |
| 1014 | local pos = Vector3.new(0, -2.62, 0.08) |
| 1015 | local cyl = Instance.new("Part") |
| 1016 | cyl.Shape = Enum.PartType.Cylinder |
| 1017 | cyl.Size = Vector3.new(0.8, 16.88, 16.88) |
| 1018 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1019 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1020 | cyl.Material = Enum.Material.Glacier |
| 1021 | cyl.MaterialVariant = "2022 Stud" |
| 1022 | cyl.Anchored = true; cyl.Parent = workspace |
| 1023 | local cuts = {} |
| 1024 | local hole = Instance.new("Part") |
| 1025 | hole.Shape = Enum.PartType.Cylinder |
| 1026 | hole.Size = Vector3.new(1, 15.28, 15.28) |
| 1027 | hole.CFrame = cyl.CFrame |
| 1028 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1029 | hole.Material = Enum.Material.Glacier |
| 1030 | hole.MaterialVariant = "2022 Stud" |
| 1031 | hole.Anchored = true; hole.Parent = workspace |
| 1032 | table.insert(cuts, hole) |
| 1033 | local angBoxes = {} |
| 1034 | do |
| 1035 | local edgeDir = -1*rightV + 0*upV |
| 1036 | local edgePerp = 0*rightV + -1*upV |
| 1037 | local cut = Instance.new("Part") |
| 1038 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 1039 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.88 * edgePerp, edgeDir, normalV) |
| 1040 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1041 | cut.Material = Enum.Material.Glacier |
| 1042 | cut.MaterialVariant = "2022 Stud" |
| 1043 | cut.Anchored = true; cut.Parent = workspace |
| 1044 | table.insert(angBoxes, cut) |
| 1045 | end |
| 1046 | do |
| 1047 | local edgeDir = 1*rightV + 0*upV |
| 1048 | local edgePerp = 0*rightV + 1*upV |
| 1049 | local cut = Instance.new("Part") |
| 1050 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 1051 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.88 * edgePerp, edgeDir, normalV) |
| 1052 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1053 | cut.Material = Enum.Material.Glacier |
| 1054 | cut.MaterialVariant = "2022 Stud" |
| 1055 | cut.Anchored = true; cut.Parent = workspace |
| 1056 | table.insert(angBoxes, cut) |
| 1057 | end |
| 1058 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1059 | if #cuts > 0 then |
| 1060 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1061 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1062 | if ok and result then |
| 1063 | cyl:Destroy() |
| 1064 | result.Name = "Coil_0_4_B"; result.Anchored = true; result.Parent = model |
| 1065 | else |
| 1066 | cyl.Name = "Coil_0_4_B"; cyl.Parent = model |
| 1067 | end |
| 1068 | else |
| 1069 | cyl.Name = "Coil_0_4_B"; cyl.Parent = model |
| 1070 | end |
| 1071 | end |
| 1072 | do |
| 1073 | local rightV = Vector3.new(1,0,0).Unit |
| 1074 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1075 | local normalV = upV:Cross(rightV) |
| 1076 | local pos = Vector3.new(0, -2.74, 0.04) |
| 1077 | local cyl = Instance.new("Part") |
| 1078 | cyl.Shape = Enum.PartType.Cylinder |
| 1079 | cyl.Size = Vector3.new(0.8, 18.44, 18.44) |
| 1080 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1081 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1082 | cyl.Material = Enum.Material.Glacier |
| 1083 | cyl.MaterialVariant = "2022 Stud" |
| 1084 | cyl.Anchored = true; cyl.Parent = workspace |
| 1085 | local cuts = {} |
| 1086 | local hole = Instance.new("Part") |
| 1087 | hole.Shape = Enum.PartType.Cylinder |
| 1088 | hole.Size = Vector3.new(1, 16.84, 16.84) |
| 1089 | hole.CFrame = cyl.CFrame |
| 1090 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1091 | hole.Material = Enum.Material.Glacier |
| 1092 | hole.MaterialVariant = "2022 Stud" |
| 1093 | hole.Anchored = true; hole.Parent = workspace |
| 1094 | table.insert(cuts, hole) |
| 1095 | local angBoxes = {} |
| 1096 | do |
| 1097 | local edgeDir = 1*rightV + 0*upV |
| 1098 | local edgePerp = 0*rightV + 1*upV |
| 1099 | local cut = Instance.new("Part") |
| 1100 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 1101 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.44 * edgePerp, edgeDir, normalV) |
| 1102 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1103 | cut.Material = Enum.Material.Glacier |
| 1104 | cut.MaterialVariant = "2022 Stud" |
| 1105 | cut.Anchored = true; cut.Parent = workspace |
| 1106 | table.insert(angBoxes, cut) |
| 1107 | end |
| 1108 | do |
| 1109 | local edgeDir = -1*rightV + 0*upV |
| 1110 | local edgePerp = 0*rightV + -1*upV |
| 1111 | local cut = Instance.new("Part") |
| 1112 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 1113 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.44 * edgePerp, edgeDir, normalV) |
| 1114 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1115 | cut.Material = Enum.Material.Glacier |
| 1116 | cut.MaterialVariant = "2022 Stud" |
| 1117 | cut.Anchored = true; cut.Parent = workspace |
| 1118 | table.insert(angBoxes, cut) |
| 1119 | end |
| 1120 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1121 | if #cuts > 0 then |
| 1122 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1123 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1124 | if ok and result then |
| 1125 | cyl:Destroy() |
| 1126 | result.Name = "Coil_0_5_A"; result.Anchored = true; result.Parent = model |
| 1127 | else |
| 1128 | cyl.Name = "Coil_0_5_A"; cyl.Parent = model |
| 1129 | end |
| 1130 | else |
| 1131 | cyl.Name = "Coil_0_5_A"; cyl.Parent = model |
| 1132 | end |
| 1133 | end |
| 1134 | do |
| 1135 | local rightV = Vector3.new(1,0,0).Unit |
| 1136 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1137 | local normalV = upV:Cross(rightV) |
| 1138 | local pos = Vector3.new(0, -2.78, 0) |
| 1139 | local cyl = Instance.new("Part") |
| 1140 | cyl.Shape = Enum.PartType.Cylinder |
| 1141 | cyl.Size = Vector3.new(0.8, 18.44, 18.44) |
| 1142 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1143 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1144 | cyl.Material = Enum.Material.Glacier |
| 1145 | cyl.MaterialVariant = "2022 Stud" |
| 1146 | cyl.Anchored = true; cyl.Parent = workspace |
| 1147 | local cuts = {} |
| 1148 | local hole = Instance.new("Part") |
| 1149 | hole.Shape = Enum.PartType.Cylinder |
| 1150 | hole.Size = Vector3.new(1, 16.84, 16.84) |
| 1151 | hole.CFrame = cyl.CFrame |
| 1152 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1153 | hole.Material = Enum.Material.Glacier |
| 1154 | hole.MaterialVariant = "2022 Stud" |
| 1155 | hole.Anchored = true; hole.Parent = workspace |
| 1156 | table.insert(cuts, hole) |
| 1157 | local angBoxes = {} |
| 1158 | do |
| 1159 | local edgeDir = -1*rightV + 0*upV |
| 1160 | local edgePerp = 0*rightV + -1*upV |
| 1161 | local cut = Instance.new("Part") |
| 1162 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 1163 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.44 * edgePerp, edgeDir, normalV) |
| 1164 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1165 | cut.Material = Enum.Material.Glacier |
| 1166 | cut.MaterialVariant = "2022 Stud" |
| 1167 | cut.Anchored = true; cut.Parent = workspace |
| 1168 | table.insert(angBoxes, cut) |
| 1169 | end |
| 1170 | do |
| 1171 | local edgeDir = 1*rightV + 0*upV |
| 1172 | local edgePerp = 0*rightV + 1*upV |
| 1173 | local cut = Instance.new("Part") |
| 1174 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 1175 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.44 * edgePerp, edgeDir, normalV) |
| 1176 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1177 | cut.Material = Enum.Material.Glacier |
| 1178 | cut.MaterialVariant = "2022 Stud" |
| 1179 | cut.Anchored = true; cut.Parent = workspace |
| 1180 | table.insert(angBoxes, cut) |
| 1181 | end |
| 1182 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1183 | if #cuts > 0 then |
| 1184 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1185 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1186 | if ok and result then |
| 1187 | cyl:Destroy() |
| 1188 | result.Name = "Coil_0_5_B"; result.Anchored = true; result.Parent = model |
| 1189 | else |
| 1190 | cyl.Name = "Coil_0_5_B"; cyl.Parent = model |
| 1191 | end |
| 1192 | else |
| 1193 | cyl.Name = "Coil_0_5_B"; cyl.Parent = model |
| 1194 | end |
| 1195 | end |
| 1196 | do |
| 1197 | local rightV = Vector3.new(1,0,0).Unit |
| 1198 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1199 | local normalV = upV:Cross(rightV) |
| 1200 | local pos = Vector3.new(0, -1.76, 0.12) |
| 1201 | local cyl = Instance.new("Part") |
| 1202 | cyl.Shape = Enum.PartType.Cylinder |
| 1203 | cyl.Size = Vector3.new(0.8, 9.68, 9.68) |
| 1204 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1205 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1206 | cyl.Material = Enum.Material.Glacier |
| 1207 | cyl.MaterialVariant = "2022 Stud" |
| 1208 | cyl.Anchored = true; cyl.Parent = workspace |
| 1209 | local cuts = {} |
| 1210 | local hole = Instance.new("Part") |
| 1211 | hole.Shape = Enum.PartType.Cylinder |
| 1212 | hole.Size = Vector3.new(1, 8.08, 8.08) |
| 1213 | hole.CFrame = cyl.CFrame |
| 1214 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1215 | hole.Material = Enum.Material.Glacier |
| 1216 | hole.MaterialVariant = "2022 Stud" |
| 1217 | hole.Anchored = true; hole.Parent = workspace |
| 1218 | table.insert(cuts, hole) |
| 1219 | local angBoxes = {} |
| 1220 | do |
| 1221 | local edgeDir = 1*rightV + 0*upV |
| 1222 | local edgePerp = 0*rightV + 1*upV |
| 1223 | local cut = Instance.new("Part") |
| 1224 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 1225 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.68 * edgePerp, edgeDir, normalV) |
| 1226 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1227 | cut.Material = Enum.Material.Glacier |
| 1228 | cut.MaterialVariant = "2022 Stud" |
| 1229 | cut.Anchored = true; cut.Parent = workspace |
| 1230 | table.insert(angBoxes, cut) |
| 1231 | end |
| 1232 | do |
| 1233 | local edgeDir = -1*rightV + 0*upV |
| 1234 | local edgePerp = 0*rightV + -1*upV |
| 1235 | local cut = Instance.new("Part") |
| 1236 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 1237 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.68 * edgePerp, edgeDir, normalV) |
| 1238 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1239 | cut.Material = Enum.Material.Glacier |
| 1240 | cut.MaterialVariant = "2022 Stud" |
| 1241 | cut.Anchored = true; cut.Parent = workspace |
| 1242 | table.insert(angBoxes, cut) |
| 1243 | end |
| 1244 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1245 | if #cuts > 0 then |
| 1246 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1247 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1248 | if ok and result then |
| 1249 | cyl:Destroy() |
| 1250 | result.Name = "Coil_1_0_A"; result.Anchored = true; result.Parent = model |
| 1251 | else |
| 1252 | cyl.Name = "Coil_1_0_A"; cyl.Parent = model |
| 1253 | end |
| 1254 | else |
| 1255 | cyl.Name = "Coil_1_0_A"; cyl.Parent = model |
| 1256 | end |
| 1257 | end |
| 1258 | do |
| 1259 | local rightV = Vector3.new(1,0,0).Unit |
| 1260 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1261 | local normalV = upV:Cross(rightV) |
| 1262 | local pos = Vector3.new(0, -1.84, 0.08) |
| 1263 | local cyl = Instance.new("Part") |
| 1264 | cyl.Shape = Enum.PartType.Cylinder |
| 1265 | cyl.Size = Vector3.new(0.8, 9.68, 9.68) |
| 1266 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1267 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1268 | cyl.Material = Enum.Material.Glacier |
| 1269 | cyl.MaterialVariant = "2022 Stud" |
| 1270 | cyl.Anchored = true; cyl.Parent = workspace |
| 1271 | local cuts = {} |
| 1272 | local hole = Instance.new("Part") |
| 1273 | hole.Shape = Enum.PartType.Cylinder |
| 1274 | hole.Size = Vector3.new(1, 8.08, 8.08) |
| 1275 | hole.CFrame = cyl.CFrame |
| 1276 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1277 | hole.Material = Enum.Material.Glacier |
| 1278 | hole.MaterialVariant = "2022 Stud" |
| 1279 | hole.Anchored = true; hole.Parent = workspace |
| 1280 | table.insert(cuts, hole) |
| 1281 | local angBoxes = {} |
| 1282 | do |
| 1283 | local edgeDir = -1*rightV + 0*upV |
| 1284 | local edgePerp = 0*rightV + -1*upV |
| 1285 | local cut = Instance.new("Part") |
| 1286 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 1287 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.68 * edgePerp, edgeDir, normalV) |
| 1288 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1289 | cut.Material = Enum.Material.Glacier |
| 1290 | cut.MaterialVariant = "2022 Stud" |
| 1291 | cut.Anchored = true; cut.Parent = workspace |
| 1292 | table.insert(angBoxes, cut) |
| 1293 | end |
| 1294 | do |
| 1295 | local edgeDir = 1*rightV + 0*upV |
| 1296 | local edgePerp = 0*rightV + 1*upV |
| 1297 | local cut = Instance.new("Part") |
| 1298 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 1299 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.68 * edgePerp, edgeDir, normalV) |
| 1300 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1301 | cut.Material = Enum.Material.Glacier |
| 1302 | cut.MaterialVariant = "2022 Stud" |
| 1303 | cut.Anchored = true; cut.Parent = workspace |
| 1304 | table.insert(angBoxes, cut) |
| 1305 | end |
| 1306 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1307 | if #cuts > 0 then |
| 1308 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1309 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1310 | if ok and result then |
| 1311 | cyl:Destroy() |
| 1312 | result.Name = "Coil_1_0_B"; result.Anchored = true; result.Parent = model |
| 1313 | else |
| 1314 | cyl.Name = "Coil_1_0_B"; cyl.Parent = model |
| 1315 | end |
| 1316 | else |
| 1317 | cyl.Name = "Coil_1_0_B"; cyl.Parent = model |
| 1318 | end |
| 1319 | end |
| 1320 | do |
| 1321 | local rightV = Vector3.new(1,0,0).Unit |
| 1322 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1323 | local normalV = upV:Cross(rightV) |
| 1324 | local pos = Vector3.new(0, -1.8, 0.04) |
| 1325 | local cyl = Instance.new("Part") |
| 1326 | cyl.Shape = Enum.PartType.Cylinder |
| 1327 | cyl.Size = Vector3.new(0.8, 11.24, 11.24) |
| 1328 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1329 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1330 | cyl.Material = Enum.Material.Glacier |
| 1331 | cyl.MaterialVariant = "2022 Stud" |
| 1332 | cyl.Anchored = true; cyl.Parent = workspace |
| 1333 | local cuts = {} |
| 1334 | local hole = Instance.new("Part") |
| 1335 | hole.Shape = Enum.PartType.Cylinder |
| 1336 | hole.Size = Vector3.new(1, 9.64, 9.64) |
| 1337 | hole.CFrame = cyl.CFrame |
| 1338 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1339 | hole.Material = Enum.Material.Glacier |
| 1340 | hole.MaterialVariant = "2022 Stud" |
| 1341 | hole.Anchored = true; hole.Parent = workspace |
| 1342 | table.insert(cuts, hole) |
| 1343 | local angBoxes = {} |
| 1344 | do |
| 1345 | local edgeDir = 1*rightV + 0*upV |
| 1346 | local edgePerp = 0*rightV + 1*upV |
| 1347 | local cut = Instance.new("Part") |
| 1348 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 1349 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.24 * edgePerp, edgeDir, normalV) |
| 1350 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1351 | cut.Material = Enum.Material.Glacier |
| 1352 | cut.MaterialVariant = "2022 Stud" |
| 1353 | cut.Anchored = true; cut.Parent = workspace |
| 1354 | table.insert(angBoxes, cut) |
| 1355 | end |
| 1356 | do |
| 1357 | local edgeDir = -1*rightV + 0*upV |
| 1358 | local edgePerp = 0*rightV + -1*upV |
| 1359 | local cut = Instance.new("Part") |
| 1360 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 1361 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.24 * edgePerp, edgeDir, normalV) |
| 1362 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1363 | cut.Material = Enum.Material.Glacier |
| 1364 | cut.MaterialVariant = "2022 Stud" |
| 1365 | cut.Anchored = true; cut.Parent = workspace |
| 1366 | table.insert(angBoxes, cut) |
| 1367 | end |
| 1368 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1369 | if #cuts > 0 then |
| 1370 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1371 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1372 | if ok and result then |
| 1373 | cyl:Destroy() |
| 1374 | result.Name = "Coil_1_1_A"; result.Anchored = true; result.Parent = model |
| 1375 | else |
| 1376 | cyl.Name = "Coil_1_1_A"; cyl.Parent = model |
| 1377 | end |
| 1378 | else |
| 1379 | cyl.Name = "Coil_1_1_A"; cyl.Parent = model |
| 1380 | end |
| 1381 | end |
| 1382 | do |
| 1383 | local rightV = Vector3.new(1,0,0).Unit |
| 1384 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1385 | local normalV = upV:Cross(rightV) |
| 1386 | local pos = Vector3.new(0, -1.8, 0) |
| 1387 | local cyl = Instance.new("Part") |
| 1388 | cyl.Shape = Enum.PartType.Cylinder |
| 1389 | cyl.Size = Vector3.new(0.8, 11.24, 11.24) |
| 1390 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1391 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1392 | cyl.Material = Enum.Material.Glacier |
| 1393 | cyl.MaterialVariant = "2022 Stud" |
| 1394 | cyl.Anchored = true; cyl.Parent = workspace |
| 1395 | local cuts = {} |
| 1396 | local hole = Instance.new("Part") |
| 1397 | hole.Shape = Enum.PartType.Cylinder |
| 1398 | hole.Size = Vector3.new(1, 9.64, 9.64) |
| 1399 | hole.CFrame = cyl.CFrame |
| 1400 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1401 | hole.Material = Enum.Material.Glacier |
| 1402 | hole.MaterialVariant = "2022 Stud" |
| 1403 | hole.Anchored = true; hole.Parent = workspace |
| 1404 | table.insert(cuts, hole) |
| 1405 | local angBoxes = {} |
| 1406 | do |
| 1407 | local edgeDir = -1*rightV + 0*upV |
| 1408 | local edgePerp = 0*rightV + -1*upV |
| 1409 | local cut = Instance.new("Part") |
| 1410 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 1411 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.24 * edgePerp, edgeDir, normalV) |
| 1412 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1413 | cut.Material = Enum.Material.Glacier |
| 1414 | cut.MaterialVariant = "2022 Stud" |
| 1415 | cut.Anchored = true; cut.Parent = workspace |
| 1416 | table.insert(angBoxes, cut) |
| 1417 | end |
| 1418 | do |
| 1419 | local edgeDir = 1*rightV + 0*upV |
| 1420 | local edgePerp = 0*rightV + 1*upV |
| 1421 | local cut = Instance.new("Part") |
| 1422 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 1423 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.24 * edgePerp, edgeDir, normalV) |
| 1424 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1425 | cut.Material = Enum.Material.Glacier |
| 1426 | cut.MaterialVariant = "2022 Stud" |
| 1427 | cut.Anchored = true; cut.Parent = workspace |
| 1428 | table.insert(angBoxes, cut) |
| 1429 | end |
| 1430 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1431 | if #cuts > 0 then |
| 1432 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1433 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1434 | if ok and result then |
| 1435 | cyl:Destroy() |
| 1436 | result.Name = "Coil_1_1_B"; result.Anchored = true; result.Parent = model |
| 1437 | else |
| 1438 | cyl.Name = "Coil_1_1_B"; cyl.Parent = model |
| 1439 | end |
| 1440 | else |
| 1441 | cyl.Name = "Coil_1_1_B"; cyl.Parent = model |
| 1442 | end |
| 1443 | end |
| 1444 | do |
| 1445 | local rightV = Vector3.new(1,0,0).Unit |
| 1446 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1447 | local normalV = upV:Cross(rightV) |
| 1448 | local pos = Vector3.new(0, -1.8, 0.04) |
| 1449 | local cyl = Instance.new("Part") |
| 1450 | cyl.Shape = Enum.PartType.Cylinder |
| 1451 | cyl.Size = Vector3.new(0.8, 13.2, 13.2) |
| 1452 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1453 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1454 | cyl.Material = Enum.Material.Glacier |
| 1455 | cyl.MaterialVariant = "2022 Stud" |
| 1456 | cyl.Anchored = true; cyl.Parent = workspace |
| 1457 | local cuts = {} |
| 1458 | local hole = Instance.new("Part") |
| 1459 | hole.Shape = Enum.PartType.Cylinder |
| 1460 | hole.Size = Vector3.new(1, 11.6, 11.6) |
| 1461 | hole.CFrame = cyl.CFrame |
| 1462 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1463 | hole.Material = Enum.Material.Glacier |
| 1464 | hole.MaterialVariant = "2022 Stud" |
| 1465 | hole.Anchored = true; hole.Parent = workspace |
| 1466 | table.insert(cuts, hole) |
| 1467 | local angBoxes = {} |
| 1468 | do |
| 1469 | local edgeDir = 1*rightV + 0*upV |
| 1470 | local edgePerp = 0*rightV + 1*upV |
| 1471 | local cut = Instance.new("Part") |
| 1472 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 1473 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.2 * edgePerp, edgeDir, normalV) |
| 1474 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1475 | cut.Material = Enum.Material.Glacier |
| 1476 | cut.MaterialVariant = "2022 Stud" |
| 1477 | cut.Anchored = true; cut.Parent = workspace |
| 1478 | table.insert(angBoxes, cut) |
| 1479 | end |
| 1480 | do |
| 1481 | local edgeDir = -1*rightV + 0*upV |
| 1482 | local edgePerp = 0*rightV + -1*upV |
| 1483 | local cut = Instance.new("Part") |
| 1484 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 1485 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.2 * edgePerp, edgeDir, normalV) |
| 1486 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1487 | cut.Material = Enum.Material.Glacier |
| 1488 | cut.MaterialVariant = "2022 Stud" |
| 1489 | cut.Anchored = true; cut.Parent = workspace |
| 1490 | table.insert(angBoxes, cut) |
| 1491 | end |
| 1492 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1493 | if #cuts > 0 then |
| 1494 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1495 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1496 | if ok and result then |
| 1497 | cyl:Destroy() |
| 1498 | result.Name = "Coil_1_2_A"; result.Anchored = true; result.Parent = model |
| 1499 | else |
| 1500 | cyl.Name = "Coil_1_2_A"; cyl.Parent = model |
| 1501 | end |
| 1502 | else |
| 1503 | cyl.Name = "Coil_1_2_A"; cyl.Parent = model |
| 1504 | end |
| 1505 | end |
| 1506 | do |
| 1507 | local rightV = Vector3.new(1,0,0).Unit |
| 1508 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1509 | local normalV = upV:Cross(rightV) |
| 1510 | local pos = Vector3.new(0, -1.8, 0) |
| 1511 | local cyl = Instance.new("Part") |
| 1512 | cyl.Shape = Enum.PartType.Cylinder |
| 1513 | cyl.Size = Vector3.new(0.8, 13.2, 13.2) |
| 1514 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1515 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1516 | cyl.Material = Enum.Material.Glacier |
| 1517 | cyl.MaterialVariant = "2022 Stud" |
| 1518 | cyl.Anchored = true; cyl.Parent = workspace |
| 1519 | local cuts = {} |
| 1520 | local hole = Instance.new("Part") |
| 1521 | hole.Shape = Enum.PartType.Cylinder |
| 1522 | hole.Size = Vector3.new(1, 11.6, 11.6) |
| 1523 | hole.CFrame = cyl.CFrame |
| 1524 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1525 | hole.Material = Enum.Material.Glacier |
| 1526 | hole.MaterialVariant = "2022 Stud" |
| 1527 | hole.Anchored = true; hole.Parent = workspace |
| 1528 | table.insert(cuts, hole) |
| 1529 | local angBoxes = {} |
| 1530 | do |
| 1531 | local edgeDir = -1*rightV + 0*upV |
| 1532 | local edgePerp = 0*rightV + -1*upV |
| 1533 | local cut = Instance.new("Part") |
| 1534 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 1535 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.2 * edgePerp, edgeDir, normalV) |
| 1536 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1537 | cut.Material = Enum.Material.Glacier |
| 1538 | cut.MaterialVariant = "2022 Stud" |
| 1539 | cut.Anchored = true; cut.Parent = workspace |
| 1540 | table.insert(angBoxes, cut) |
| 1541 | end |
| 1542 | do |
| 1543 | local edgeDir = 1*rightV + 0*upV |
| 1544 | local edgePerp = 0*rightV + 1*upV |
| 1545 | local cut = Instance.new("Part") |
| 1546 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 1547 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.2 * edgePerp, edgeDir, normalV) |
| 1548 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1549 | cut.Material = Enum.Material.Glacier |
| 1550 | cut.MaterialVariant = "2022 Stud" |
| 1551 | cut.Anchored = true; cut.Parent = workspace |
| 1552 | table.insert(angBoxes, cut) |
| 1553 | end |
| 1554 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1555 | if #cuts > 0 then |
| 1556 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1557 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1558 | if ok and result then |
| 1559 | cyl:Destroy() |
| 1560 | result.Name = "Coil_1_2_B"; result.Anchored = true; result.Parent = model |
| 1561 | else |
| 1562 | cyl.Name = "Coil_1_2_B"; cyl.Parent = model |
| 1563 | end |
| 1564 | else |
| 1565 | cyl.Name = "Coil_1_2_B"; cyl.Parent = model |
| 1566 | end |
| 1567 | end |
| 1568 | do |
| 1569 | local rightV = Vector3.new(1,0,0).Unit |
| 1570 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1571 | local normalV = upV:Cross(rightV) |
| 1572 | local pos = Vector3.new(0, -1.8, 0.12) |
| 1573 | local cyl = Instance.new("Part") |
| 1574 | cyl.Shape = Enum.PartType.Cylinder |
| 1575 | cyl.Size = Vector3.new(0.8, 15.16, 15.16) |
| 1576 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1577 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1578 | cyl.Material = Enum.Material.Glacier |
| 1579 | cyl.MaterialVariant = "2022 Stud" |
| 1580 | cyl.Anchored = true; cyl.Parent = workspace |
| 1581 | local cuts = {} |
| 1582 | local hole = Instance.new("Part") |
| 1583 | hole.Shape = Enum.PartType.Cylinder |
| 1584 | hole.Size = Vector3.new(1, 13.56, 13.56) |
| 1585 | hole.CFrame = cyl.CFrame |
| 1586 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1587 | hole.Material = Enum.Material.Glacier |
| 1588 | hole.MaterialVariant = "2022 Stud" |
| 1589 | hole.Anchored = true; hole.Parent = workspace |
| 1590 | table.insert(cuts, hole) |
| 1591 | local angBoxes = {} |
| 1592 | do |
| 1593 | local edgeDir = 1*rightV + 0*upV |
| 1594 | local edgePerp = 0*rightV + 1*upV |
| 1595 | local cut = Instance.new("Part") |
| 1596 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 1597 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15.16 * edgePerp, edgeDir, normalV) |
| 1598 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1599 | cut.Material = Enum.Material.Glacier |
| 1600 | cut.MaterialVariant = "2022 Stud" |
| 1601 | cut.Anchored = true; cut.Parent = workspace |
| 1602 | table.insert(angBoxes, cut) |
| 1603 | end |
| 1604 | do |
| 1605 | local edgeDir = -1*rightV + 0*upV |
| 1606 | local edgePerp = 0*rightV + -1*upV |
| 1607 | local cut = Instance.new("Part") |
| 1608 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 1609 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15.16 * edgePerp, edgeDir, normalV) |
| 1610 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1611 | cut.Material = Enum.Material.Glacier |
| 1612 | cut.MaterialVariant = "2022 Stud" |
| 1613 | cut.Anchored = true; cut.Parent = workspace |
| 1614 | table.insert(angBoxes, cut) |
| 1615 | end |
| 1616 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1617 | if #cuts > 0 then |
| 1618 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1619 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1620 | if ok and result then |
| 1621 | cyl:Destroy() |
| 1622 | result.Name = "Coil_1_3_A"; result.Anchored = true; result.Parent = model |
| 1623 | else |
| 1624 | cyl.Name = "Coil_1_3_A"; cyl.Parent = model |
| 1625 | end |
| 1626 | else |
| 1627 | cyl.Name = "Coil_1_3_A"; cyl.Parent = model |
| 1628 | end |
| 1629 | end |
| 1630 | do |
| 1631 | local rightV = Vector3.new(1,0,0).Unit |
| 1632 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1633 | local normalV = upV:Cross(rightV) |
| 1634 | local pos = Vector3.new(0, -1.84, 0.08) |
| 1635 | local cyl = Instance.new("Part") |
| 1636 | cyl.Shape = Enum.PartType.Cylinder |
| 1637 | cyl.Size = Vector3.new(0.8, 15.16, 15.16) |
| 1638 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1639 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1640 | cyl.Material = Enum.Material.Glacier |
| 1641 | cyl.MaterialVariant = "2022 Stud" |
| 1642 | cyl.Anchored = true; cyl.Parent = workspace |
| 1643 | local cuts = {} |
| 1644 | local hole = Instance.new("Part") |
| 1645 | hole.Shape = Enum.PartType.Cylinder |
| 1646 | hole.Size = Vector3.new(1, 13.56, 13.56) |
| 1647 | hole.CFrame = cyl.CFrame |
| 1648 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1649 | hole.Material = Enum.Material.Glacier |
| 1650 | hole.MaterialVariant = "2022 Stud" |
| 1651 | hole.Anchored = true; hole.Parent = workspace |
| 1652 | table.insert(cuts, hole) |
| 1653 | local angBoxes = {} |
| 1654 | do |
| 1655 | local edgeDir = -1*rightV + 0*upV |
| 1656 | local edgePerp = 0*rightV + -1*upV |
| 1657 | local cut = Instance.new("Part") |
| 1658 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 1659 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15.16 * edgePerp, edgeDir, normalV) |
| 1660 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1661 | cut.Material = Enum.Material.Glacier |
| 1662 | cut.MaterialVariant = "2022 Stud" |
| 1663 | cut.Anchored = true; cut.Parent = workspace |
| 1664 | table.insert(angBoxes, cut) |
| 1665 | end |
| 1666 | do |
| 1667 | local edgeDir = 1*rightV + 0*upV |
| 1668 | local edgePerp = 0*rightV + 1*upV |
| 1669 | local cut = Instance.new("Part") |
| 1670 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 1671 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15.16 * edgePerp, edgeDir, normalV) |
| 1672 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1673 | cut.Material = Enum.Material.Glacier |
| 1674 | cut.MaterialVariant = "2022 Stud" |
| 1675 | cut.Anchored = true; cut.Parent = workspace |
| 1676 | table.insert(angBoxes, cut) |
| 1677 | end |
| 1678 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1679 | if #cuts > 0 then |
| 1680 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1681 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1682 | if ok and result then |
| 1683 | cyl:Destroy() |
| 1684 | result.Name = "Coil_1_3_B"; result.Anchored = true; result.Parent = model |
| 1685 | else |
| 1686 | cyl.Name = "Coil_1_3_B"; cyl.Parent = model |
| 1687 | end |
| 1688 | else |
| 1689 | cyl.Name = "Coil_1_3_B"; cyl.Parent = model |
| 1690 | end |
| 1691 | end |
| 1692 | do |
| 1693 | local rightV = Vector3.new(1,0,0).Unit |
| 1694 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1695 | local normalV = upV:Cross(rightV) |
| 1696 | local pos = Vector3.new(0, -1.72, 0.04) |
| 1697 | local cyl = Instance.new("Part") |
| 1698 | cyl.Shape = Enum.PartType.Cylinder |
| 1699 | cyl.Size = Vector3.new(0.8, 16.72, 16.72) |
| 1700 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1701 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1702 | cyl.Material = Enum.Material.Glacier |
| 1703 | cyl.MaterialVariant = "2022 Stud" |
| 1704 | cyl.Anchored = true; cyl.Parent = workspace |
| 1705 | local cuts = {} |
| 1706 | local hole = Instance.new("Part") |
| 1707 | hole.Shape = Enum.PartType.Cylinder |
| 1708 | hole.Size = Vector3.new(1, 15.12, 15.12) |
| 1709 | hole.CFrame = cyl.CFrame |
| 1710 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1711 | hole.Material = Enum.Material.Glacier |
| 1712 | hole.MaterialVariant = "2022 Stud" |
| 1713 | hole.Anchored = true; hole.Parent = workspace |
| 1714 | table.insert(cuts, hole) |
| 1715 | local angBoxes = {} |
| 1716 | do |
| 1717 | local edgeDir = 1*rightV + 0*upV |
| 1718 | local edgePerp = 0*rightV + 1*upV |
| 1719 | local cut = Instance.new("Part") |
| 1720 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 1721 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.72 * edgePerp, edgeDir, normalV) |
| 1722 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1723 | cut.Material = Enum.Material.Glacier |
| 1724 | cut.MaterialVariant = "2022 Stud" |
| 1725 | cut.Anchored = true; cut.Parent = workspace |
| 1726 | table.insert(angBoxes, cut) |
| 1727 | end |
| 1728 | do |
| 1729 | local edgeDir = -1*rightV + 0*upV |
| 1730 | local edgePerp = 0*rightV + -1*upV |
| 1731 | local cut = Instance.new("Part") |
| 1732 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 1733 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.72 * edgePerp, edgeDir, normalV) |
| 1734 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1735 | cut.Material = Enum.Material.Glacier |
| 1736 | cut.MaterialVariant = "2022 Stud" |
| 1737 | cut.Anchored = true; cut.Parent = workspace |
| 1738 | table.insert(angBoxes, cut) |
| 1739 | end |
| 1740 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1741 | if #cuts > 0 then |
| 1742 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1743 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1744 | if ok and result then |
| 1745 | cyl:Destroy() |
| 1746 | result.Name = "Coil_1_4_A"; result.Anchored = true; result.Parent = model |
| 1747 | else |
| 1748 | cyl.Name = "Coil_1_4_A"; cyl.Parent = model |
| 1749 | end |
| 1750 | else |
| 1751 | cyl.Name = "Coil_1_4_A"; cyl.Parent = model |
| 1752 | end |
| 1753 | end |
| 1754 | do |
| 1755 | local rightV = Vector3.new(1,0,0).Unit |
| 1756 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1757 | local normalV = upV:Cross(rightV) |
| 1758 | local pos = Vector3.new(0, -1.8, 0) |
| 1759 | local cyl = Instance.new("Part") |
| 1760 | cyl.Shape = Enum.PartType.Cylinder |
| 1761 | cyl.Size = Vector3.new(0.8, 16.72, 16.72) |
| 1762 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1763 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1764 | cyl.Material = Enum.Material.Glacier |
| 1765 | cyl.MaterialVariant = "2022 Stud" |
| 1766 | cyl.Anchored = true; cyl.Parent = workspace |
| 1767 | local cuts = {} |
| 1768 | local hole = Instance.new("Part") |
| 1769 | hole.Shape = Enum.PartType.Cylinder |
| 1770 | hole.Size = Vector3.new(1, 15.12, 15.12) |
| 1771 | hole.CFrame = cyl.CFrame |
| 1772 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1773 | hole.Material = Enum.Material.Glacier |
| 1774 | hole.MaterialVariant = "2022 Stud" |
| 1775 | hole.Anchored = true; hole.Parent = workspace |
| 1776 | table.insert(cuts, hole) |
| 1777 | local angBoxes = {} |
| 1778 | do |
| 1779 | local edgeDir = -1*rightV + 0*upV |
| 1780 | local edgePerp = 0*rightV + -1*upV |
| 1781 | local cut = Instance.new("Part") |
| 1782 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 1783 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.72 * edgePerp, edgeDir, normalV) |
| 1784 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1785 | cut.Material = Enum.Material.Glacier |
| 1786 | cut.MaterialVariant = "2022 Stud" |
| 1787 | cut.Anchored = true; cut.Parent = workspace |
| 1788 | table.insert(angBoxes, cut) |
| 1789 | end |
| 1790 | do |
| 1791 | local edgeDir = 1*rightV + 0*upV |
| 1792 | local edgePerp = 0*rightV + 1*upV |
| 1793 | local cut = Instance.new("Part") |
| 1794 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 1795 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.72 * edgePerp, edgeDir, normalV) |
| 1796 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1797 | cut.Material = Enum.Material.Glacier |
| 1798 | cut.MaterialVariant = "2022 Stud" |
| 1799 | cut.Anchored = true; cut.Parent = workspace |
| 1800 | table.insert(angBoxes, cut) |
| 1801 | end |
| 1802 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1803 | if #cuts > 0 then |
| 1804 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1805 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1806 | if ok and result then |
| 1807 | cyl:Destroy() |
| 1808 | result.Name = "Coil_1_4_B"; result.Anchored = true; result.Parent = model |
| 1809 | else |
| 1810 | cyl.Name = "Coil_1_4_B"; cyl.Parent = model |
| 1811 | end |
| 1812 | else |
| 1813 | cyl.Name = "Coil_1_4_B"; cyl.Parent = model |
| 1814 | end |
| 1815 | end |
| 1816 | do |
| 1817 | local rightV = Vector3.new(1,0,0).Unit |
| 1818 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1819 | local normalV = upV:Cross(rightV) |
| 1820 | local pos = Vector3.new(0, -1.84, 0.04) |
| 1821 | local cyl = Instance.new("Part") |
| 1822 | cyl.Shape = Enum.PartType.Cylinder |
| 1823 | cyl.Size = Vector3.new(0.8, 18.68, 18.68) |
| 1824 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1825 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1826 | cyl.Material = Enum.Material.Glacier |
| 1827 | cyl.MaterialVariant = "2022 Stud" |
| 1828 | cyl.Anchored = true; cyl.Parent = workspace |
| 1829 | local cuts = {} |
| 1830 | local hole = Instance.new("Part") |
| 1831 | hole.Shape = Enum.PartType.Cylinder |
| 1832 | hole.Size = Vector3.new(1, 17.08, 17.08) |
| 1833 | hole.CFrame = cyl.CFrame |
| 1834 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1835 | hole.Material = Enum.Material.Glacier |
| 1836 | hole.MaterialVariant = "2022 Stud" |
| 1837 | hole.Anchored = true; hole.Parent = workspace |
| 1838 | table.insert(cuts, hole) |
| 1839 | local angBoxes = {} |
| 1840 | do |
| 1841 | local edgeDir = 1*rightV + 0*upV |
| 1842 | local edgePerp = 0*rightV + 1*upV |
| 1843 | local cut = Instance.new("Part") |
| 1844 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 1845 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.68 * edgePerp, edgeDir, normalV) |
| 1846 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1847 | cut.Material = Enum.Material.Glacier |
| 1848 | cut.MaterialVariant = "2022 Stud" |
| 1849 | cut.Anchored = true; cut.Parent = workspace |
| 1850 | table.insert(angBoxes, cut) |
| 1851 | end |
| 1852 | do |
| 1853 | local edgeDir = -1*rightV + 0*upV |
| 1854 | local edgePerp = 0*rightV + -1*upV |
| 1855 | local cut = Instance.new("Part") |
| 1856 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 1857 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.68 * edgePerp, edgeDir, normalV) |
| 1858 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1859 | cut.Material = Enum.Material.Glacier |
| 1860 | cut.MaterialVariant = "2022 Stud" |
| 1861 | cut.Anchored = true; cut.Parent = workspace |
| 1862 | table.insert(angBoxes, cut) |
| 1863 | end |
| 1864 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1865 | if #cuts > 0 then |
| 1866 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1867 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1868 | if ok and result then |
| 1869 | cyl:Destroy() |
| 1870 | result.Name = "Coil_1_5_A"; result.Anchored = true; result.Parent = model |
| 1871 | else |
| 1872 | cyl.Name = "Coil_1_5_A"; cyl.Parent = model |
| 1873 | end |
| 1874 | else |
| 1875 | cyl.Name = "Coil_1_5_A"; cyl.Parent = model |
| 1876 | end |
| 1877 | end |
| 1878 | do |
| 1879 | local rightV = Vector3.new(1,0,0).Unit |
| 1880 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1881 | local normalV = upV:Cross(rightV) |
| 1882 | local pos = Vector3.new(0, -1.88, 0) |
| 1883 | local cyl = Instance.new("Part") |
| 1884 | cyl.Shape = Enum.PartType.Cylinder |
| 1885 | cyl.Size = Vector3.new(0.8, 18.68, 18.68) |
| 1886 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1887 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1888 | cyl.Material = Enum.Material.Glacier |
| 1889 | cyl.MaterialVariant = "2022 Stud" |
| 1890 | cyl.Anchored = true; cyl.Parent = workspace |
| 1891 | local cuts = {} |
| 1892 | local hole = Instance.new("Part") |
| 1893 | hole.Shape = Enum.PartType.Cylinder |
| 1894 | hole.Size = Vector3.new(1, 17.08, 17.08) |
| 1895 | hole.CFrame = cyl.CFrame |
| 1896 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1897 | hole.Material = Enum.Material.Glacier |
| 1898 | hole.MaterialVariant = "2022 Stud" |
| 1899 | hole.Anchored = true; hole.Parent = workspace |
| 1900 | table.insert(cuts, hole) |
| 1901 | local angBoxes = {} |
| 1902 | do |
| 1903 | local edgeDir = -1*rightV + 0*upV |
| 1904 | local edgePerp = 0*rightV + -1*upV |
| 1905 | local cut = Instance.new("Part") |
| 1906 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 1907 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.68 * edgePerp, edgeDir, normalV) |
| 1908 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1909 | cut.Material = Enum.Material.Glacier |
| 1910 | cut.MaterialVariant = "2022 Stud" |
| 1911 | cut.Anchored = true; cut.Parent = workspace |
| 1912 | table.insert(angBoxes, cut) |
| 1913 | end |
| 1914 | do |
| 1915 | local edgeDir = 1*rightV + 0*upV |
| 1916 | local edgePerp = 0*rightV + 1*upV |
| 1917 | local cut = Instance.new("Part") |
| 1918 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 1919 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.68 * edgePerp, edgeDir, normalV) |
| 1920 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1921 | cut.Material = Enum.Material.Glacier |
| 1922 | cut.MaterialVariant = "2022 Stud" |
| 1923 | cut.Anchored = true; cut.Parent = workspace |
| 1924 | table.insert(angBoxes, cut) |
| 1925 | end |
| 1926 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1927 | if #cuts > 0 then |
| 1928 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1929 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1930 | if ok and result then |
| 1931 | cyl:Destroy() |
| 1932 | result.Name = "Coil_1_5_B"; result.Anchored = true; result.Parent = model |
| 1933 | else |
| 1934 | cyl.Name = "Coil_1_5_B"; cyl.Parent = model |
| 1935 | end |
| 1936 | else |
| 1937 | cyl.Name = "Coil_1_5_B"; cyl.Parent = model |
| 1938 | end |
| 1939 | end |
| 1940 | do |
| 1941 | local rightV = Vector3.new(1,0,0).Unit |
| 1942 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1943 | local normalV = upV:Cross(rightV) |
| 1944 | local pos = Vector3.new(0, -0.86, 0.04) |
| 1945 | local cyl = Instance.new("Part") |
| 1946 | cyl.Shape = Enum.PartType.Cylinder |
| 1947 | cyl.Size = Vector3.new(0.8, 9.52, 9.52) |
| 1948 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1949 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 1950 | cyl.Material = Enum.Material.Glacier |
| 1951 | cyl.MaterialVariant = "2022 Stud" |
| 1952 | cyl.Anchored = true; cyl.Parent = workspace |
| 1953 | local cuts = {} |
| 1954 | local hole = Instance.new("Part") |
| 1955 | hole.Shape = Enum.PartType.Cylinder |
| 1956 | hole.Size = Vector3.new(1, 7.92, 7.92) |
| 1957 | hole.CFrame = cyl.CFrame |
| 1958 | hole.BrickColor = BrickColor.new("Bright orange") |
| 1959 | hole.Material = Enum.Material.Glacier |
| 1960 | hole.MaterialVariant = "2022 Stud" |
| 1961 | hole.Anchored = true; hole.Parent = workspace |
| 1962 | table.insert(cuts, hole) |
| 1963 | local angBoxes = {} |
| 1964 | do |
| 1965 | local edgeDir = 1*rightV + 0*upV |
| 1966 | local edgePerp = 0*rightV + 1*upV |
| 1967 | local cut = Instance.new("Part") |
| 1968 | cut.Size = Vector3.new(19.04, 1, 19.04) |
| 1969 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.52 * edgePerp, edgeDir, normalV) |
| 1970 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1971 | cut.Material = Enum.Material.Glacier |
| 1972 | cut.MaterialVariant = "2022 Stud" |
| 1973 | cut.Anchored = true; cut.Parent = workspace |
| 1974 | table.insert(angBoxes, cut) |
| 1975 | end |
| 1976 | do |
| 1977 | local edgeDir = -1*rightV + 0*upV |
| 1978 | local edgePerp = 0*rightV + -1*upV |
| 1979 | local cut = Instance.new("Part") |
| 1980 | cut.Size = Vector3.new(19.04, 1, 19.04) |
| 1981 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.52 * edgePerp, edgeDir, normalV) |
| 1982 | cut.BrickColor = BrickColor.new("Bright orange") |
| 1983 | cut.Material = Enum.Material.Glacier |
| 1984 | cut.MaterialVariant = "2022 Stud" |
| 1985 | cut.Anchored = true; cut.Parent = workspace |
| 1986 | table.insert(angBoxes, cut) |
| 1987 | end |
| 1988 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1989 | if #cuts > 0 then |
| 1990 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1991 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1992 | if ok and result then |
| 1993 | cyl:Destroy() |
| 1994 | result.Name = "Coil_2_0_A"; result.Anchored = true; result.Parent = model |
| 1995 | else |
| 1996 | cyl.Name = "Coil_2_0_A"; cyl.Parent = model |
| 1997 | end |
| 1998 | else |
| 1999 | cyl.Name = "Coil_2_0_A"; cyl.Parent = model |
| 2000 | end |
| 2001 | end |
| 2002 | do |
| 2003 | local rightV = Vector3.new(1,0,0).Unit |
| 2004 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2005 | local normalV = upV:Cross(rightV) |
| 2006 | local pos = Vector3.new(0, -0.86, 0) |
| 2007 | local cyl = Instance.new("Part") |
| 2008 | cyl.Shape = Enum.PartType.Cylinder |
| 2009 | cyl.Size = Vector3.new(0.8, 9.52, 9.52) |
| 2010 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2011 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2012 | cyl.Material = Enum.Material.Glacier |
| 2013 | cyl.MaterialVariant = "2022 Stud" |
| 2014 | cyl.Anchored = true; cyl.Parent = workspace |
| 2015 | local cuts = {} |
| 2016 | local hole = Instance.new("Part") |
| 2017 | hole.Shape = Enum.PartType.Cylinder |
| 2018 | hole.Size = Vector3.new(1, 7.92, 7.92) |
| 2019 | hole.CFrame = cyl.CFrame |
| 2020 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2021 | hole.Material = Enum.Material.Glacier |
| 2022 | hole.MaterialVariant = "2022 Stud" |
| 2023 | hole.Anchored = true; hole.Parent = workspace |
| 2024 | table.insert(cuts, hole) |
| 2025 | local angBoxes = {} |
| 2026 | do |
| 2027 | local edgeDir = -1*rightV + 0*upV |
| 2028 | local edgePerp = 0*rightV + -1*upV |
| 2029 | local cut = Instance.new("Part") |
| 2030 | cut.Size = Vector3.new(19.04, 1, 19.04) |
| 2031 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.52 * edgePerp, edgeDir, normalV) |
| 2032 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2033 | cut.Material = Enum.Material.Glacier |
| 2034 | cut.MaterialVariant = "2022 Stud" |
| 2035 | cut.Anchored = true; cut.Parent = workspace |
| 2036 | table.insert(angBoxes, cut) |
| 2037 | end |
| 2038 | do |
| 2039 | local edgeDir = 1*rightV + 0*upV |
| 2040 | local edgePerp = 0*rightV + 1*upV |
| 2041 | local cut = Instance.new("Part") |
| 2042 | cut.Size = Vector3.new(19.04, 1, 19.04) |
| 2043 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.52 * edgePerp, edgeDir, normalV) |
| 2044 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2045 | cut.Material = Enum.Material.Glacier |
| 2046 | cut.MaterialVariant = "2022 Stud" |
| 2047 | cut.Anchored = true; cut.Parent = workspace |
| 2048 | table.insert(angBoxes, cut) |
| 2049 | end |
| 2050 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2051 | if #cuts > 0 then |
| 2052 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2053 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2054 | if ok and result then |
| 2055 | cyl:Destroy() |
| 2056 | result.Name = "Coil_2_0_B"; result.Anchored = true; result.Parent = model |
| 2057 | else |
| 2058 | cyl.Name = "Coil_2_0_B"; cyl.Parent = model |
| 2059 | end |
| 2060 | else |
| 2061 | cyl.Name = "Coil_2_0_B"; cyl.Parent = model |
| 2062 | end |
| 2063 | end |
| 2064 | do |
| 2065 | local rightV = Vector3.new(1,0,0).Unit |
| 2066 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2067 | local normalV = upV:Cross(rightV) |
| 2068 | local pos = Vector3.new(0, -0.9, 0.12) |
| 2069 | local cyl = Instance.new("Part") |
| 2070 | cyl.Shape = Enum.PartType.Cylinder |
| 2071 | cyl.Size = Vector3.new(0.8, 11.48, 11.48) |
| 2072 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2073 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2074 | cyl.Material = Enum.Material.Glacier |
| 2075 | cyl.MaterialVariant = "2022 Stud" |
| 2076 | cyl.Anchored = true; cyl.Parent = workspace |
| 2077 | local cuts = {} |
| 2078 | local hole = Instance.new("Part") |
| 2079 | hole.Shape = Enum.PartType.Cylinder |
| 2080 | hole.Size = Vector3.new(1, 9.88, 9.88) |
| 2081 | hole.CFrame = cyl.CFrame |
| 2082 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2083 | hole.Material = Enum.Material.Glacier |
| 2084 | hole.MaterialVariant = "2022 Stud" |
| 2085 | hole.Anchored = true; hole.Parent = workspace |
| 2086 | table.insert(cuts, hole) |
| 2087 | local angBoxes = {} |
| 2088 | do |
| 2089 | local edgeDir = 1*rightV + 0*upV |
| 2090 | local edgePerp = 0*rightV + 1*upV |
| 2091 | local cut = Instance.new("Part") |
| 2092 | cut.Size = Vector3.new(22.96, 1, 22.96) |
| 2093 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.48 * edgePerp, edgeDir, normalV) |
| 2094 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2095 | cut.Material = Enum.Material.Glacier |
| 2096 | cut.MaterialVariant = "2022 Stud" |
| 2097 | cut.Anchored = true; cut.Parent = workspace |
| 2098 | table.insert(angBoxes, cut) |
| 2099 | end |
| 2100 | do |
| 2101 | local edgeDir = -1*rightV + 0*upV |
| 2102 | local edgePerp = 0*rightV + -1*upV |
| 2103 | local cut = Instance.new("Part") |
| 2104 | cut.Size = Vector3.new(22.96, 1, 22.96) |
| 2105 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.48 * edgePerp, edgeDir, normalV) |
| 2106 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2107 | cut.Material = Enum.Material.Glacier |
| 2108 | cut.MaterialVariant = "2022 Stud" |
| 2109 | cut.Anchored = true; cut.Parent = workspace |
| 2110 | table.insert(angBoxes, cut) |
| 2111 | end |
| 2112 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2113 | if #cuts > 0 then |
| 2114 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2115 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2116 | if ok and result then |
| 2117 | cyl:Destroy() |
| 2118 | result.Name = "Coil_2_1_A"; result.Anchored = true; result.Parent = model |
| 2119 | else |
| 2120 | cyl.Name = "Coil_2_1_A"; cyl.Parent = model |
| 2121 | end |
| 2122 | else |
| 2123 | cyl.Name = "Coil_2_1_A"; cyl.Parent = model |
| 2124 | end |
| 2125 | end |
| 2126 | do |
| 2127 | local rightV = Vector3.new(1,0,0).Unit |
| 2128 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2129 | local normalV = upV:Cross(rightV) |
| 2130 | local pos = Vector3.new(0, -0.94, 0.08) |
| 2131 | local cyl = Instance.new("Part") |
| 2132 | cyl.Shape = Enum.PartType.Cylinder |
| 2133 | cyl.Size = Vector3.new(0.8, 11.48, 11.48) |
| 2134 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2135 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2136 | cyl.Material = Enum.Material.Glacier |
| 2137 | cyl.MaterialVariant = "2022 Stud" |
| 2138 | cyl.Anchored = true; cyl.Parent = workspace |
| 2139 | local cuts = {} |
| 2140 | local hole = Instance.new("Part") |
| 2141 | hole.Shape = Enum.PartType.Cylinder |
| 2142 | hole.Size = Vector3.new(1, 9.88, 9.88) |
| 2143 | hole.CFrame = cyl.CFrame |
| 2144 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2145 | hole.Material = Enum.Material.Glacier |
| 2146 | hole.MaterialVariant = "2022 Stud" |
| 2147 | hole.Anchored = true; hole.Parent = workspace |
| 2148 | table.insert(cuts, hole) |
| 2149 | local angBoxes = {} |
| 2150 | do |
| 2151 | local edgeDir = -1*rightV + 0*upV |
| 2152 | local edgePerp = 0*rightV + -1*upV |
| 2153 | local cut = Instance.new("Part") |
| 2154 | cut.Size = Vector3.new(22.96, 1, 22.96) |
| 2155 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.48 * edgePerp, edgeDir, normalV) |
| 2156 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2157 | cut.Material = Enum.Material.Glacier |
| 2158 | cut.MaterialVariant = "2022 Stud" |
| 2159 | cut.Anchored = true; cut.Parent = workspace |
| 2160 | table.insert(angBoxes, cut) |
| 2161 | end |
| 2162 | do |
| 2163 | local edgeDir = 1*rightV + 0*upV |
| 2164 | local edgePerp = 0*rightV + 1*upV |
| 2165 | local cut = Instance.new("Part") |
| 2166 | cut.Size = Vector3.new(22.96, 1, 22.96) |
| 2167 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.48 * edgePerp, edgeDir, normalV) |
| 2168 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2169 | cut.Material = Enum.Material.Glacier |
| 2170 | cut.MaterialVariant = "2022 Stud" |
| 2171 | cut.Anchored = true; cut.Parent = workspace |
| 2172 | table.insert(angBoxes, cut) |
| 2173 | end |
| 2174 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2175 | if #cuts > 0 then |
| 2176 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2177 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2178 | if ok and result then |
| 2179 | cyl:Destroy() |
| 2180 | result.Name = "Coil_2_1_B"; result.Anchored = true; result.Parent = model |
| 2181 | else |
| 2182 | cyl.Name = "Coil_2_1_B"; cyl.Parent = model |
| 2183 | end |
| 2184 | else |
| 2185 | cyl.Name = "Coil_2_1_B"; cyl.Parent = model |
| 2186 | end |
| 2187 | end |
| 2188 | do |
| 2189 | local rightV = Vector3.new(1,0,0).Unit |
| 2190 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2191 | local normalV = upV:Cross(rightV) |
| 2192 | local pos = Vector3.new(0, -0.82, 0.04) |
| 2193 | local cyl = Instance.new("Part") |
| 2194 | cyl.Shape = Enum.PartType.Cylinder |
| 2195 | cyl.Size = Vector3.new(0.8, 13.04, 13.04) |
| 2196 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2197 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2198 | cyl.Material = Enum.Material.Glacier |
| 2199 | cyl.MaterialVariant = "2022 Stud" |
| 2200 | cyl.Anchored = true; cyl.Parent = workspace |
| 2201 | local cuts = {} |
| 2202 | local hole = Instance.new("Part") |
| 2203 | hole.Shape = Enum.PartType.Cylinder |
| 2204 | hole.Size = Vector3.new(1, 11.44, 11.44) |
| 2205 | hole.CFrame = cyl.CFrame |
| 2206 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2207 | hole.Material = Enum.Material.Glacier |
| 2208 | hole.MaterialVariant = "2022 Stud" |
| 2209 | hole.Anchored = true; hole.Parent = workspace |
| 2210 | table.insert(cuts, hole) |
| 2211 | local angBoxes = {} |
| 2212 | do |
| 2213 | local edgeDir = 1*rightV + 0*upV |
| 2214 | local edgePerp = 0*rightV + 1*upV |
| 2215 | local cut = Instance.new("Part") |
| 2216 | cut.Size = Vector3.new(26.08, 1, 26.08) |
| 2217 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.04 * edgePerp, edgeDir, normalV) |
| 2218 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2219 | cut.Material = Enum.Material.Glacier |
| 2220 | cut.MaterialVariant = "2022 Stud" |
| 2221 | cut.Anchored = true; cut.Parent = workspace |
| 2222 | table.insert(angBoxes, cut) |
| 2223 | end |
| 2224 | do |
| 2225 | local edgeDir = -1*rightV + 0*upV |
| 2226 | local edgePerp = 0*rightV + -1*upV |
| 2227 | local cut = Instance.new("Part") |
| 2228 | cut.Size = Vector3.new(26.08, 1, 26.08) |
| 2229 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.04 * edgePerp, edgeDir, normalV) |
| 2230 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2231 | cut.Material = Enum.Material.Glacier |
| 2232 | cut.MaterialVariant = "2022 Stud" |
| 2233 | cut.Anchored = true; cut.Parent = workspace |
| 2234 | table.insert(angBoxes, cut) |
| 2235 | end |
| 2236 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2237 | if #cuts > 0 then |
| 2238 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2239 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2240 | if ok and result then |
| 2241 | cyl:Destroy() |
| 2242 | result.Name = "Coil_2_2_A"; result.Anchored = true; result.Parent = model |
| 2243 | else |
| 2244 | cyl.Name = "Coil_2_2_A"; cyl.Parent = model |
| 2245 | end |
| 2246 | else |
| 2247 | cyl.Name = "Coil_2_2_A"; cyl.Parent = model |
| 2248 | end |
| 2249 | end |
| 2250 | do |
| 2251 | local rightV = Vector3.new(1,0,0).Unit |
| 2252 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2253 | local normalV = upV:Cross(rightV) |
| 2254 | local pos = Vector3.new(0, -0.9, 0) |
| 2255 | local cyl = Instance.new("Part") |
| 2256 | cyl.Shape = Enum.PartType.Cylinder |
| 2257 | cyl.Size = Vector3.new(0.8, 13.04, 13.04) |
| 2258 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2259 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2260 | cyl.Material = Enum.Material.Glacier |
| 2261 | cyl.MaterialVariant = "2022 Stud" |
| 2262 | cyl.Anchored = true; cyl.Parent = workspace |
| 2263 | local cuts = {} |
| 2264 | local hole = Instance.new("Part") |
| 2265 | hole.Shape = Enum.PartType.Cylinder |
| 2266 | hole.Size = Vector3.new(1, 11.44, 11.44) |
| 2267 | hole.CFrame = cyl.CFrame |
| 2268 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2269 | hole.Material = Enum.Material.Glacier |
| 2270 | hole.MaterialVariant = "2022 Stud" |
| 2271 | hole.Anchored = true; hole.Parent = workspace |
| 2272 | table.insert(cuts, hole) |
| 2273 | local angBoxes = {} |
| 2274 | do |
| 2275 | local edgeDir = -1*rightV + 0*upV |
| 2276 | local edgePerp = 0*rightV + -1*upV |
| 2277 | local cut = Instance.new("Part") |
| 2278 | cut.Size = Vector3.new(26.08, 1, 26.08) |
| 2279 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.04 * edgePerp, edgeDir, normalV) |
| 2280 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2281 | cut.Material = Enum.Material.Glacier |
| 2282 | cut.MaterialVariant = "2022 Stud" |
| 2283 | cut.Anchored = true; cut.Parent = workspace |
| 2284 | table.insert(angBoxes, cut) |
| 2285 | end |
| 2286 | do |
| 2287 | local edgeDir = 1*rightV + 0*upV |
| 2288 | local edgePerp = 0*rightV + 1*upV |
| 2289 | local cut = Instance.new("Part") |
| 2290 | cut.Size = Vector3.new(26.08, 1, 26.08) |
| 2291 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.04 * edgePerp, edgeDir, normalV) |
| 2292 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2293 | cut.Material = Enum.Material.Glacier |
| 2294 | cut.MaterialVariant = "2022 Stud" |
| 2295 | cut.Anchored = true; cut.Parent = workspace |
| 2296 | table.insert(angBoxes, cut) |
| 2297 | end |
| 2298 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2299 | if #cuts > 0 then |
| 2300 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2301 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2302 | if ok and result then |
| 2303 | cyl:Destroy() |
| 2304 | result.Name = "Coil_2_2_B"; result.Anchored = true; result.Parent = model |
| 2305 | else |
| 2306 | cyl.Name = "Coil_2_2_B"; cyl.Parent = model |
| 2307 | end |
| 2308 | else |
| 2309 | cyl.Name = "Coil_2_2_B"; cyl.Parent = model |
| 2310 | end |
| 2311 | end |
| 2312 | do |
| 2313 | local rightV = Vector3.new(1,0,0).Unit |
| 2314 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2315 | local normalV = upV:Cross(rightV) |
| 2316 | local pos = Vector3.new(0, -0.9, 0.04) |
| 2317 | local cyl = Instance.new("Part") |
| 2318 | cyl.Shape = Enum.PartType.Cylinder |
| 2319 | cyl.Size = Vector3.new(0.8, 15, 15) |
| 2320 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2321 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2322 | cyl.Material = Enum.Material.Glacier |
| 2323 | cyl.MaterialVariant = "2022 Stud" |
| 2324 | cyl.Anchored = true; cyl.Parent = workspace |
| 2325 | local cuts = {} |
| 2326 | local hole = Instance.new("Part") |
| 2327 | hole.Shape = Enum.PartType.Cylinder |
| 2328 | hole.Size = Vector3.new(1, 13.4, 13.4) |
| 2329 | hole.CFrame = cyl.CFrame |
| 2330 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2331 | hole.Material = Enum.Material.Glacier |
| 2332 | hole.MaterialVariant = "2022 Stud" |
| 2333 | hole.Anchored = true; hole.Parent = workspace |
| 2334 | table.insert(cuts, hole) |
| 2335 | local angBoxes = {} |
| 2336 | do |
| 2337 | local edgeDir = 1*rightV + 0*upV |
| 2338 | local edgePerp = 0*rightV + 1*upV |
| 2339 | local cut = Instance.new("Part") |
| 2340 | cut.Size = Vector3.new(30, 1, 30) |
| 2341 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15 * edgePerp, edgeDir, normalV) |
| 2342 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2343 | cut.Material = Enum.Material.Glacier |
| 2344 | cut.MaterialVariant = "2022 Stud" |
| 2345 | cut.Anchored = true; cut.Parent = workspace |
| 2346 | table.insert(angBoxes, cut) |
| 2347 | end |
| 2348 | do |
| 2349 | local edgeDir = -1*rightV + 0*upV |
| 2350 | local edgePerp = 0*rightV + -1*upV |
| 2351 | local cut = Instance.new("Part") |
| 2352 | cut.Size = Vector3.new(30, 1, 30) |
| 2353 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15 * edgePerp, edgeDir, normalV) |
| 2354 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2355 | cut.Material = Enum.Material.Glacier |
| 2356 | cut.MaterialVariant = "2022 Stud" |
| 2357 | cut.Anchored = true; cut.Parent = workspace |
| 2358 | table.insert(angBoxes, cut) |
| 2359 | end |
| 2360 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2361 | if #cuts > 0 then |
| 2362 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2363 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2364 | if ok and result then |
| 2365 | cyl:Destroy() |
| 2366 | result.Name = "Coil_2_3_A"; result.Anchored = true; result.Parent = model |
| 2367 | else |
| 2368 | cyl.Name = "Coil_2_3_A"; cyl.Parent = model |
| 2369 | end |
| 2370 | else |
| 2371 | cyl.Name = "Coil_2_3_A"; cyl.Parent = model |
| 2372 | end |
| 2373 | end |
| 2374 | do |
| 2375 | local rightV = Vector3.new(1,0,0).Unit |
| 2376 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2377 | local normalV = upV:Cross(rightV) |
| 2378 | local pos = Vector3.new(0, -0.86, 0) |
| 2379 | local cyl = Instance.new("Part") |
| 2380 | cyl.Shape = Enum.PartType.Cylinder |
| 2381 | cyl.Size = Vector3.new(0.8, 15, 15) |
| 2382 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2383 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2384 | cyl.Material = Enum.Material.Glacier |
| 2385 | cyl.MaterialVariant = "2022 Stud" |
| 2386 | cyl.Anchored = true; cyl.Parent = workspace |
| 2387 | local cuts = {} |
| 2388 | local hole = Instance.new("Part") |
| 2389 | hole.Shape = Enum.PartType.Cylinder |
| 2390 | hole.Size = Vector3.new(1, 13.4, 13.4) |
| 2391 | hole.CFrame = cyl.CFrame |
| 2392 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2393 | hole.Material = Enum.Material.Glacier |
| 2394 | hole.MaterialVariant = "2022 Stud" |
| 2395 | hole.Anchored = true; hole.Parent = workspace |
| 2396 | table.insert(cuts, hole) |
| 2397 | local angBoxes = {} |
| 2398 | do |
| 2399 | local edgeDir = -1*rightV + 0*upV |
| 2400 | local edgePerp = 0*rightV + -1*upV |
| 2401 | local cut = Instance.new("Part") |
| 2402 | cut.Size = Vector3.new(30, 1, 30) |
| 2403 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15 * edgePerp, edgeDir, normalV) |
| 2404 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2405 | cut.Material = Enum.Material.Glacier |
| 2406 | cut.MaterialVariant = "2022 Stud" |
| 2407 | cut.Anchored = true; cut.Parent = workspace |
| 2408 | table.insert(angBoxes, cut) |
| 2409 | end |
| 2410 | do |
| 2411 | local edgeDir = 1*rightV + 0*upV |
| 2412 | local edgePerp = 0*rightV + 1*upV |
| 2413 | local cut = Instance.new("Part") |
| 2414 | cut.Size = Vector3.new(30, 1, 30) |
| 2415 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15 * edgePerp, edgeDir, normalV) |
| 2416 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2417 | cut.Material = Enum.Material.Glacier |
| 2418 | cut.MaterialVariant = "2022 Stud" |
| 2419 | cut.Anchored = true; cut.Parent = workspace |
| 2420 | table.insert(angBoxes, cut) |
| 2421 | end |
| 2422 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2423 | if #cuts > 0 then |
| 2424 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2425 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2426 | if ok and result then |
| 2427 | cyl:Destroy() |
| 2428 | result.Name = "Coil_2_3_B"; result.Anchored = true; result.Parent = model |
| 2429 | else |
| 2430 | cyl.Name = "Coil_2_3_B"; cyl.Parent = model |
| 2431 | end |
| 2432 | else |
| 2433 | cyl.Name = "Coil_2_3_B"; cyl.Parent = model |
| 2434 | end |
| 2435 | end |
| 2436 | do |
| 2437 | local rightV = Vector3.new(1,0,0).Unit |
| 2438 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2439 | local normalV = upV:Cross(rightV) |
| 2440 | local pos = Vector3.new(0, -0.9, 0.12) |
| 2441 | local cyl = Instance.new("Part") |
| 2442 | cyl.Shape = Enum.PartType.Cylinder |
| 2443 | cyl.Size = Vector3.new(0.8, 16.96, 16.96) |
| 2444 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2445 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2446 | cyl.Material = Enum.Material.Glacier |
| 2447 | cyl.MaterialVariant = "2022 Stud" |
| 2448 | cyl.Anchored = true; cyl.Parent = workspace |
| 2449 | local cuts = {} |
| 2450 | local hole = Instance.new("Part") |
| 2451 | hole.Shape = Enum.PartType.Cylinder |
| 2452 | hole.Size = Vector3.new(1, 15.36, 15.36) |
| 2453 | hole.CFrame = cyl.CFrame |
| 2454 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2455 | hole.Material = Enum.Material.Glacier |
| 2456 | hole.MaterialVariant = "2022 Stud" |
| 2457 | hole.Anchored = true; hole.Parent = workspace |
| 2458 | table.insert(cuts, hole) |
| 2459 | local angBoxes = {} |
| 2460 | do |
| 2461 | local edgeDir = 1*rightV + 0*upV |
| 2462 | local edgePerp = 0*rightV + 1*upV |
| 2463 | local cut = Instance.new("Part") |
| 2464 | cut.Size = Vector3.new(33.92, 1, 33.92) |
| 2465 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.96 * edgePerp, edgeDir, normalV) |
| 2466 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2467 | cut.Material = Enum.Material.Glacier |
| 2468 | cut.MaterialVariant = "2022 Stud" |
| 2469 | cut.Anchored = true; cut.Parent = workspace |
| 2470 | table.insert(angBoxes, cut) |
| 2471 | end |
| 2472 | do |
| 2473 | local edgeDir = -1*rightV + 0*upV |
| 2474 | local edgePerp = 0*rightV + -1*upV |
| 2475 | local cut = Instance.new("Part") |
| 2476 | cut.Size = Vector3.new(33.92, 1, 33.92) |
| 2477 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.96 * edgePerp, edgeDir, normalV) |
| 2478 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2479 | cut.Material = Enum.Material.Glacier |
| 2480 | cut.MaterialVariant = "2022 Stud" |
| 2481 | cut.Anchored = true; cut.Parent = workspace |
| 2482 | table.insert(angBoxes, cut) |
| 2483 | end |
| 2484 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2485 | if #cuts > 0 then |
| 2486 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2487 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2488 | if ok and result then |
| 2489 | cyl:Destroy() |
| 2490 | result.Name = "Coil_2_4_A"; result.Anchored = true; result.Parent = model |
| 2491 | else |
| 2492 | cyl.Name = "Coil_2_4_A"; cyl.Parent = model |
| 2493 | end |
| 2494 | else |
| 2495 | cyl.Name = "Coil_2_4_A"; cyl.Parent = model |
| 2496 | end |
| 2497 | end |
| 2498 | do |
| 2499 | local rightV = Vector3.new(1,0,0).Unit |
| 2500 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2501 | local normalV = upV:Cross(rightV) |
| 2502 | local pos = Vector3.new(0, -0.82, 0.08) |
| 2503 | local cyl = Instance.new("Part") |
| 2504 | cyl.Shape = Enum.PartType.Cylinder |
| 2505 | cyl.Size = Vector3.new(0.8, 16.96, 16.96) |
| 2506 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2507 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2508 | cyl.Material = Enum.Material.Glacier |
| 2509 | cyl.MaterialVariant = "2022 Stud" |
| 2510 | cyl.Anchored = true; cyl.Parent = workspace |
| 2511 | local cuts = {} |
| 2512 | local hole = Instance.new("Part") |
| 2513 | hole.Shape = Enum.PartType.Cylinder |
| 2514 | hole.Size = Vector3.new(1, 15.36, 15.36) |
| 2515 | hole.CFrame = cyl.CFrame |
| 2516 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2517 | hole.Material = Enum.Material.Glacier |
| 2518 | hole.MaterialVariant = "2022 Stud" |
| 2519 | hole.Anchored = true; hole.Parent = workspace |
| 2520 | table.insert(cuts, hole) |
| 2521 | local angBoxes = {} |
| 2522 | do |
| 2523 | local edgeDir = -1*rightV + 0*upV |
| 2524 | local edgePerp = 0*rightV + -1*upV |
| 2525 | local cut = Instance.new("Part") |
| 2526 | cut.Size = Vector3.new(33.92, 1, 33.92) |
| 2527 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.96 * edgePerp, edgeDir, normalV) |
| 2528 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2529 | cut.Material = Enum.Material.Glacier |
| 2530 | cut.MaterialVariant = "2022 Stud" |
| 2531 | cut.Anchored = true; cut.Parent = workspace |
| 2532 | table.insert(angBoxes, cut) |
| 2533 | end |
| 2534 | do |
| 2535 | local edgeDir = 1*rightV + 0*upV |
| 2536 | local edgePerp = 0*rightV + 1*upV |
| 2537 | local cut = Instance.new("Part") |
| 2538 | cut.Size = Vector3.new(33.92, 1, 33.92) |
| 2539 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.96 * edgePerp, edgeDir, normalV) |
| 2540 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2541 | cut.Material = Enum.Material.Glacier |
| 2542 | cut.MaterialVariant = "2022 Stud" |
| 2543 | cut.Anchored = true; cut.Parent = workspace |
| 2544 | table.insert(angBoxes, cut) |
| 2545 | end |
| 2546 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2547 | if #cuts > 0 then |
| 2548 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2549 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2550 | if ok and result then |
| 2551 | cyl:Destroy() |
| 2552 | result.Name = "Coil_2_4_B"; result.Anchored = true; result.Parent = model |
| 2553 | else |
| 2554 | cyl.Name = "Coil_2_4_B"; cyl.Parent = model |
| 2555 | end |
| 2556 | else |
| 2557 | cyl.Name = "Coil_2_4_B"; cyl.Parent = model |
| 2558 | end |
| 2559 | end |
| 2560 | do |
| 2561 | local rightV = Vector3.new(1,0,0).Unit |
| 2562 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2563 | local normalV = upV:Cross(rightV) |
| 2564 | local pos = Vector3.new(0, -0.94, 0.04) |
| 2565 | local cyl = Instance.new("Part") |
| 2566 | cyl.Shape = Enum.PartType.Cylinder |
| 2567 | cyl.Size = Vector3.new(0.8, 18.52, 18.52) |
| 2568 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2569 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2570 | cyl.Material = Enum.Material.Glacier |
| 2571 | cyl.MaterialVariant = "2022 Stud" |
| 2572 | cyl.Anchored = true; cyl.Parent = workspace |
| 2573 | local cuts = {} |
| 2574 | local hole = Instance.new("Part") |
| 2575 | hole.Shape = Enum.PartType.Cylinder |
| 2576 | hole.Size = Vector3.new(1, 16.92, 16.92) |
| 2577 | hole.CFrame = cyl.CFrame |
| 2578 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2579 | hole.Material = Enum.Material.Glacier |
| 2580 | hole.MaterialVariant = "2022 Stud" |
| 2581 | hole.Anchored = true; hole.Parent = workspace |
| 2582 | table.insert(cuts, hole) |
| 2583 | local angBoxes = {} |
| 2584 | do |
| 2585 | local edgeDir = 1*rightV + 0*upV |
| 2586 | local edgePerp = 0*rightV + 1*upV |
| 2587 | local cut = Instance.new("Part") |
| 2588 | cut.Size = Vector3.new(37.04, 1, 37.04) |
| 2589 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.52 * edgePerp, edgeDir, normalV) |
| 2590 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2591 | cut.Material = Enum.Material.Glacier |
| 2592 | cut.MaterialVariant = "2022 Stud" |
| 2593 | cut.Anchored = true; cut.Parent = workspace |
| 2594 | table.insert(angBoxes, cut) |
| 2595 | end |
| 2596 | do |
| 2597 | local edgeDir = -1*rightV + 0*upV |
| 2598 | local edgePerp = 0*rightV + -1*upV |
| 2599 | local cut = Instance.new("Part") |
| 2600 | cut.Size = Vector3.new(37.04, 1, 37.04) |
| 2601 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.52 * edgePerp, edgeDir, normalV) |
| 2602 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2603 | cut.Material = Enum.Material.Glacier |
| 2604 | cut.MaterialVariant = "2022 Stud" |
| 2605 | cut.Anchored = true; cut.Parent = workspace |
| 2606 | table.insert(angBoxes, cut) |
| 2607 | end |
| 2608 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2609 | if #cuts > 0 then |
| 2610 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2611 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2612 | if ok and result then |
| 2613 | cyl:Destroy() |
| 2614 | result.Name = "Coil_2_5_A"; result.Anchored = true; result.Parent = model |
| 2615 | else |
| 2616 | cyl.Name = "Coil_2_5_A"; cyl.Parent = model |
| 2617 | end |
| 2618 | else |
| 2619 | cyl.Name = "Coil_2_5_A"; cyl.Parent = model |
| 2620 | end |
| 2621 | end |
| 2622 | do |
| 2623 | local rightV = Vector3.new(1,0,0).Unit |
| 2624 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2625 | local normalV = upV:Cross(rightV) |
| 2626 | local pos = Vector3.new(0, -0.98, 0) |
| 2627 | local cyl = Instance.new("Part") |
| 2628 | cyl.Shape = Enum.PartType.Cylinder |
| 2629 | cyl.Size = Vector3.new(0.8, 18.52, 18.52) |
| 2630 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2631 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2632 | cyl.Material = Enum.Material.Glacier |
| 2633 | cyl.MaterialVariant = "2022 Stud" |
| 2634 | cyl.Anchored = true; cyl.Parent = workspace |
| 2635 | local cuts = {} |
| 2636 | local hole = Instance.new("Part") |
| 2637 | hole.Shape = Enum.PartType.Cylinder |
| 2638 | hole.Size = Vector3.new(1, 16.92, 16.92) |
| 2639 | hole.CFrame = cyl.CFrame |
| 2640 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2641 | hole.Material = Enum.Material.Glacier |
| 2642 | hole.MaterialVariant = "2022 Stud" |
| 2643 | hole.Anchored = true; hole.Parent = workspace |
| 2644 | table.insert(cuts, hole) |
| 2645 | local angBoxes = {} |
| 2646 | do |
| 2647 | local edgeDir = -1*rightV + 0*upV |
| 2648 | local edgePerp = 0*rightV + -1*upV |
| 2649 | local cut = Instance.new("Part") |
| 2650 | cut.Size = Vector3.new(37.04, 1, 37.04) |
| 2651 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.52 * edgePerp, edgeDir, normalV) |
| 2652 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2653 | cut.Material = Enum.Material.Glacier |
| 2654 | cut.MaterialVariant = "2022 Stud" |
| 2655 | cut.Anchored = true; cut.Parent = workspace |
| 2656 | table.insert(angBoxes, cut) |
| 2657 | end |
| 2658 | do |
| 2659 | local edgeDir = 1*rightV + 0*upV |
| 2660 | local edgePerp = 0*rightV + 1*upV |
| 2661 | local cut = Instance.new("Part") |
| 2662 | cut.Size = Vector3.new(37.04, 1, 37.04) |
| 2663 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.52 * edgePerp, edgeDir, normalV) |
| 2664 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2665 | cut.Material = Enum.Material.Glacier |
| 2666 | cut.MaterialVariant = "2022 Stud" |
| 2667 | cut.Anchored = true; cut.Parent = workspace |
| 2668 | table.insert(angBoxes, cut) |
| 2669 | end |
| 2670 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2671 | if #cuts > 0 then |
| 2672 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2673 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2674 | if ok and result then |
| 2675 | cyl:Destroy() |
| 2676 | result.Name = "Coil_2_5_B"; result.Anchored = true; result.Parent = model |
| 2677 | else |
| 2678 | cyl.Name = "Coil_2_5_B"; cyl.Parent = model |
| 2679 | end |
| 2680 | else |
| 2681 | cyl.Name = "Coil_2_5_B"; cyl.Parent = model |
| 2682 | end |
| 2683 | end |
| 2684 | do |
| 2685 | local rightV = Vector3.new(1,0,0).Unit |
| 2686 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2687 | local normalV = upV:Cross(rightV) |
| 2688 | local pos = Vector3.new(0, 0.04, 0.12) |
| 2689 | local cyl = Instance.new("Part") |
| 2690 | cyl.Shape = Enum.PartType.Cylinder |
| 2691 | cyl.Size = Vector3.new(0.8, 9.76, 9.76) |
| 2692 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2693 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2694 | cyl.Material = Enum.Material.Glacier |
| 2695 | cyl.MaterialVariant = "2022 Stud" |
| 2696 | cyl.Anchored = true; cyl.Parent = workspace |
| 2697 | local cuts = {} |
| 2698 | local hole = Instance.new("Part") |
| 2699 | hole.Shape = Enum.PartType.Cylinder |
| 2700 | hole.Size = Vector3.new(1, 8.16, 8.16) |
| 2701 | hole.CFrame = cyl.CFrame |
| 2702 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2703 | hole.Material = Enum.Material.Glacier |
| 2704 | hole.MaterialVariant = "2022 Stud" |
| 2705 | hole.Anchored = true; hole.Parent = workspace |
| 2706 | table.insert(cuts, hole) |
| 2707 | local angBoxes = {} |
| 2708 | do |
| 2709 | local edgeDir = 1*rightV + 0*upV |
| 2710 | local edgePerp = 0*rightV + 1*upV |
| 2711 | local cut = Instance.new("Part") |
| 2712 | cut.Size = Vector3.new(19.52, 1, 19.52) |
| 2713 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.76 * edgePerp, edgeDir, normalV) |
| 2714 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2715 | cut.Material = Enum.Material.Glacier |
| 2716 | cut.MaterialVariant = "2022 Stud" |
| 2717 | cut.Anchored = true; cut.Parent = workspace |
| 2718 | table.insert(angBoxes, cut) |
| 2719 | end |
| 2720 | do |
| 2721 | local edgeDir = -1*rightV + 0*upV |
| 2722 | local edgePerp = 0*rightV + -1*upV |
| 2723 | local cut = Instance.new("Part") |
| 2724 | cut.Size = Vector3.new(19.52, 1, 19.52) |
| 2725 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.76 * edgePerp, edgeDir, normalV) |
| 2726 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2727 | cut.Material = Enum.Material.Glacier |
| 2728 | cut.MaterialVariant = "2022 Stud" |
| 2729 | cut.Anchored = true; cut.Parent = workspace |
| 2730 | table.insert(angBoxes, cut) |
| 2731 | end |
| 2732 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2733 | if #cuts > 0 then |
| 2734 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2735 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2736 | if ok and result then |
| 2737 | cyl:Destroy() |
| 2738 | result.Name = "Coil_3_0_A"; result.Anchored = true; result.Parent = model |
| 2739 | else |
| 2740 | cyl.Name = "Coil_3_0_A"; cyl.Parent = model |
| 2741 | end |
| 2742 | else |
| 2743 | cyl.Name = "Coil_3_0_A"; cyl.Parent = model |
| 2744 | end |
| 2745 | end |
| 2746 | do |
| 2747 | local rightV = Vector3.new(1,0,0).Unit |
| 2748 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2749 | local normalV = upV:Cross(rightV) |
| 2750 | local pos = Vector3.new(0, -0.04, 0.08) |
| 2751 | local cyl = Instance.new("Part") |
| 2752 | cyl.Shape = Enum.PartType.Cylinder |
| 2753 | cyl.Size = Vector3.new(0.8, 9.76, 9.76) |
| 2754 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2755 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2756 | cyl.Material = Enum.Material.Glacier |
| 2757 | cyl.MaterialVariant = "2022 Stud" |
| 2758 | cyl.Anchored = true; cyl.Parent = workspace |
| 2759 | local cuts = {} |
| 2760 | local hole = Instance.new("Part") |
| 2761 | hole.Shape = Enum.PartType.Cylinder |
| 2762 | hole.Size = Vector3.new(1, 8.16, 8.16) |
| 2763 | hole.CFrame = cyl.CFrame |
| 2764 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2765 | hole.Material = Enum.Material.Glacier |
| 2766 | hole.MaterialVariant = "2022 Stud" |
| 2767 | hole.Anchored = true; hole.Parent = workspace |
| 2768 | table.insert(cuts, hole) |
| 2769 | local angBoxes = {} |
| 2770 | do |
| 2771 | local edgeDir = -1*rightV + 0*upV |
| 2772 | local edgePerp = 0*rightV + -1*upV |
| 2773 | local cut = Instance.new("Part") |
| 2774 | cut.Size = Vector3.new(19.52, 1, 19.52) |
| 2775 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.76 * edgePerp, edgeDir, normalV) |
| 2776 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2777 | cut.Material = Enum.Material.Glacier |
| 2778 | cut.MaterialVariant = "2022 Stud" |
| 2779 | cut.Anchored = true; cut.Parent = workspace |
| 2780 | table.insert(angBoxes, cut) |
| 2781 | end |
| 2782 | do |
| 2783 | local edgeDir = 1*rightV + 0*upV |
| 2784 | local edgePerp = 0*rightV + 1*upV |
| 2785 | local cut = Instance.new("Part") |
| 2786 | cut.Size = Vector3.new(19.52, 1, 19.52) |
| 2787 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.76 * edgePerp, edgeDir, normalV) |
| 2788 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2789 | cut.Material = Enum.Material.Glacier |
| 2790 | cut.MaterialVariant = "2022 Stud" |
| 2791 | cut.Anchored = true; cut.Parent = workspace |
| 2792 | table.insert(angBoxes, cut) |
| 2793 | end |
| 2794 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2795 | if #cuts > 0 then |
| 2796 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2797 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2798 | if ok and result then |
| 2799 | cyl:Destroy() |
| 2800 | result.Name = "Coil_3_0_B"; result.Anchored = true; result.Parent = model |
| 2801 | else |
| 2802 | cyl.Name = "Coil_3_0_B"; cyl.Parent = model |
| 2803 | end |
| 2804 | else |
| 2805 | cyl.Name = "Coil_3_0_B"; cyl.Parent = model |
| 2806 | end |
| 2807 | end |
| 2808 | do |
| 2809 | local rightV = Vector3.new(1,0,0).Unit |
| 2810 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2811 | local normalV = upV:Cross(rightV) |
| 2812 | local pos = Vector3.new(0, 0, 0.04) |
| 2813 | local cyl = Instance.new("Part") |
| 2814 | cyl.Shape = Enum.PartType.Cylinder |
| 2815 | cyl.Size = Vector3.new(0.8, 11.32, 11.32) |
| 2816 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2817 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2818 | cyl.Material = Enum.Material.Glacier |
| 2819 | cyl.MaterialVariant = "2022 Stud" |
| 2820 | cyl.Anchored = true; cyl.Parent = workspace |
| 2821 | local cuts = {} |
| 2822 | local hole = Instance.new("Part") |
| 2823 | hole.Shape = Enum.PartType.Cylinder |
| 2824 | hole.Size = Vector3.new(1, 9.72, 9.72) |
| 2825 | hole.CFrame = cyl.CFrame |
| 2826 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2827 | hole.Material = Enum.Material.Glacier |
| 2828 | hole.MaterialVariant = "2022 Stud" |
| 2829 | hole.Anchored = true; hole.Parent = workspace |
| 2830 | table.insert(cuts, hole) |
| 2831 | local angBoxes = {} |
| 2832 | do |
| 2833 | local edgeDir = 1*rightV + 0*upV |
| 2834 | local edgePerp = 0*rightV + 1*upV |
| 2835 | local cut = Instance.new("Part") |
| 2836 | cut.Size = Vector3.new(22.64, 1, 22.64) |
| 2837 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.32 * edgePerp, edgeDir, normalV) |
| 2838 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2839 | cut.Material = Enum.Material.Glacier |
| 2840 | cut.MaterialVariant = "2022 Stud" |
| 2841 | cut.Anchored = true; cut.Parent = workspace |
| 2842 | table.insert(angBoxes, cut) |
| 2843 | end |
| 2844 | do |
| 2845 | local edgeDir = -1*rightV + 0*upV |
| 2846 | local edgePerp = 0*rightV + -1*upV |
| 2847 | local cut = Instance.new("Part") |
| 2848 | cut.Size = Vector3.new(22.64, 1, 22.64) |
| 2849 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.32 * edgePerp, edgeDir, normalV) |
| 2850 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2851 | cut.Material = Enum.Material.Glacier |
| 2852 | cut.MaterialVariant = "2022 Stud" |
| 2853 | cut.Anchored = true; cut.Parent = workspace |
| 2854 | table.insert(angBoxes, cut) |
| 2855 | end |
| 2856 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2857 | if #cuts > 0 then |
| 2858 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2859 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2860 | if ok and result then |
| 2861 | cyl:Destroy() |
| 2862 | result.Name = "Coil_3_1_A"; result.Anchored = true; result.Parent = model |
| 2863 | else |
| 2864 | cyl.Name = "Coil_3_1_A"; cyl.Parent = model |
| 2865 | end |
| 2866 | else |
| 2867 | cyl.Name = "Coil_3_1_A"; cyl.Parent = model |
| 2868 | end |
| 2869 | end |
| 2870 | do |
| 2871 | local rightV = Vector3.new(1,0,0).Unit |
| 2872 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2873 | local normalV = upV:Cross(rightV) |
| 2874 | local pos = Vector3.new(0, 0, 0) |
| 2875 | local cyl = Instance.new("Part") |
| 2876 | cyl.Shape = Enum.PartType.Cylinder |
| 2877 | cyl.Size = Vector3.new(0.8, 11.32, 11.32) |
| 2878 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2879 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2880 | cyl.Material = Enum.Material.Glacier |
| 2881 | cyl.MaterialVariant = "2022 Stud" |
| 2882 | cyl.Anchored = true; cyl.Parent = workspace |
| 2883 | local cuts = {} |
| 2884 | local hole = Instance.new("Part") |
| 2885 | hole.Shape = Enum.PartType.Cylinder |
| 2886 | hole.Size = Vector3.new(1, 9.72, 9.72) |
| 2887 | hole.CFrame = cyl.CFrame |
| 2888 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2889 | hole.Material = Enum.Material.Glacier |
| 2890 | hole.MaterialVariant = "2022 Stud" |
| 2891 | hole.Anchored = true; hole.Parent = workspace |
| 2892 | table.insert(cuts, hole) |
| 2893 | local angBoxes = {} |
| 2894 | do |
| 2895 | local edgeDir = -1*rightV + 0*upV |
| 2896 | local edgePerp = 0*rightV + -1*upV |
| 2897 | local cut = Instance.new("Part") |
| 2898 | cut.Size = Vector3.new(22.64, 1, 22.64) |
| 2899 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.32 * edgePerp, edgeDir, normalV) |
| 2900 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2901 | cut.Material = Enum.Material.Glacier |
| 2902 | cut.MaterialVariant = "2022 Stud" |
| 2903 | cut.Anchored = true; cut.Parent = workspace |
| 2904 | table.insert(angBoxes, cut) |
| 2905 | end |
| 2906 | do |
| 2907 | local edgeDir = 1*rightV + 0*upV |
| 2908 | local edgePerp = 0*rightV + 1*upV |
| 2909 | local cut = Instance.new("Part") |
| 2910 | cut.Size = Vector3.new(22.64, 1, 22.64) |
| 2911 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.32 * edgePerp, edgeDir, normalV) |
| 2912 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2913 | cut.Material = Enum.Material.Glacier |
| 2914 | cut.MaterialVariant = "2022 Stud" |
| 2915 | cut.Anchored = true; cut.Parent = workspace |
| 2916 | table.insert(angBoxes, cut) |
| 2917 | end |
| 2918 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2919 | if #cuts > 0 then |
| 2920 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2921 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2922 | if ok and result then |
| 2923 | cyl:Destroy() |
| 2924 | result.Name = "Coil_3_1_B"; result.Anchored = true; result.Parent = model |
| 2925 | else |
| 2926 | cyl.Name = "Coil_3_1_B"; cyl.Parent = model |
| 2927 | end |
| 2928 | else |
| 2929 | cyl.Name = "Coil_3_1_B"; cyl.Parent = model |
| 2930 | end |
| 2931 | end |
| 2932 | do |
| 2933 | local rightV = Vector3.new(1,0,0).Unit |
| 2934 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2935 | local normalV = upV:Cross(rightV) |
| 2936 | local pos = Vector3.new(0, 0, 0.12) |
| 2937 | local cyl = Instance.new("Part") |
| 2938 | cyl.Shape = Enum.PartType.Cylinder |
| 2939 | cyl.Size = Vector3.new(0.8, 13.28, 13.28) |
| 2940 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 2941 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 2942 | cyl.Material = Enum.Material.Glacier |
| 2943 | cyl.MaterialVariant = "2022 Stud" |
| 2944 | cyl.Anchored = true; cyl.Parent = workspace |
| 2945 | local cuts = {} |
| 2946 | local hole = Instance.new("Part") |
| 2947 | hole.Shape = Enum.PartType.Cylinder |
| 2948 | hole.Size = Vector3.new(1, 11.68, 11.68) |
| 2949 | hole.CFrame = cyl.CFrame |
| 2950 | hole.BrickColor = BrickColor.new("Bright orange") |
| 2951 | hole.Material = Enum.Material.Glacier |
| 2952 | hole.MaterialVariant = "2022 Stud" |
| 2953 | hole.Anchored = true; hole.Parent = workspace |
| 2954 | table.insert(cuts, hole) |
| 2955 | local angBoxes = {} |
| 2956 | do |
| 2957 | local edgeDir = 1*rightV + 0*upV |
| 2958 | local edgePerp = 0*rightV + 1*upV |
| 2959 | local cut = Instance.new("Part") |
| 2960 | cut.Size = Vector3.new(26.56, 1, 26.56) |
| 2961 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.28 * edgePerp, edgeDir, normalV) |
| 2962 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2963 | cut.Material = Enum.Material.Glacier |
| 2964 | cut.MaterialVariant = "2022 Stud" |
| 2965 | cut.Anchored = true; cut.Parent = workspace |
| 2966 | table.insert(angBoxes, cut) |
| 2967 | end |
| 2968 | do |
| 2969 | local edgeDir = -1*rightV + 0*upV |
| 2970 | local edgePerp = 0*rightV + -1*upV |
| 2971 | local cut = Instance.new("Part") |
| 2972 | cut.Size = Vector3.new(26.56, 1, 26.56) |
| 2973 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.28 * edgePerp, edgeDir, normalV) |
| 2974 | cut.BrickColor = BrickColor.new("Bright orange") |
| 2975 | cut.Material = Enum.Material.Glacier |
| 2976 | cut.MaterialVariant = "2022 Stud" |
| 2977 | cut.Anchored = true; cut.Parent = workspace |
| 2978 | table.insert(angBoxes, cut) |
| 2979 | end |
| 2980 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 2981 | if #cuts > 0 then |
| 2982 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 2983 | for _, c in ipairs(cuts) do c:Destroy() end |
| 2984 | if ok and result then |
| 2985 | cyl:Destroy() |
| 2986 | result.Name = "Coil_3_2_A"; result.Anchored = true; result.Parent = model |
| 2987 | else |
| 2988 | cyl.Name = "Coil_3_2_A"; cyl.Parent = model |
| 2989 | end |
| 2990 | else |
| 2991 | cyl.Name = "Coil_3_2_A"; cyl.Parent = model |
| 2992 | end |
| 2993 | end |
| 2994 | do |
| 2995 | local rightV = Vector3.new(1,0,0).Unit |
| 2996 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 2997 | local normalV = upV:Cross(rightV) |
| 2998 | local pos = Vector3.new(0, 0, 0.08) |
| 2999 | local cyl = Instance.new("Part") |
| 3000 | cyl.Shape = Enum.PartType.Cylinder |
| 3001 | cyl.Size = Vector3.new(0.8, 13.28, 13.28) |
| 3002 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3003 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3004 | cyl.Material = Enum.Material.Glacier |
| 3005 | cyl.MaterialVariant = "2022 Stud" |
| 3006 | cyl.Anchored = true; cyl.Parent = workspace |
| 3007 | local cuts = {} |
| 3008 | local hole = Instance.new("Part") |
| 3009 | hole.Shape = Enum.PartType.Cylinder |
| 3010 | hole.Size = Vector3.new(1, 11.68, 11.68) |
| 3011 | hole.CFrame = cyl.CFrame |
| 3012 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3013 | hole.Material = Enum.Material.Glacier |
| 3014 | hole.MaterialVariant = "2022 Stud" |
| 3015 | hole.Anchored = true; hole.Parent = workspace |
| 3016 | table.insert(cuts, hole) |
| 3017 | local angBoxes = {} |
| 3018 | do |
| 3019 | local edgeDir = -1*rightV + 0*upV |
| 3020 | local edgePerp = 0*rightV + -1*upV |
| 3021 | local cut = Instance.new("Part") |
| 3022 | cut.Size = Vector3.new(26.56, 1, 26.56) |
| 3023 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.28 * edgePerp, edgeDir, normalV) |
| 3024 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3025 | cut.Material = Enum.Material.Glacier |
| 3026 | cut.MaterialVariant = "2022 Stud" |
| 3027 | cut.Anchored = true; cut.Parent = workspace |
| 3028 | table.insert(angBoxes, cut) |
| 3029 | end |
| 3030 | do |
| 3031 | local edgeDir = 1*rightV + 0*upV |
| 3032 | local edgePerp = 0*rightV + 1*upV |
| 3033 | local cut = Instance.new("Part") |
| 3034 | cut.Size = Vector3.new(26.56, 1, 26.56) |
| 3035 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.28 * edgePerp, edgeDir, normalV) |
| 3036 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3037 | cut.Material = Enum.Material.Glacier |
| 3038 | cut.MaterialVariant = "2022 Stud" |
| 3039 | cut.Anchored = true; cut.Parent = workspace |
| 3040 | table.insert(angBoxes, cut) |
| 3041 | end |
| 3042 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3043 | if #cuts > 0 then |
| 3044 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3045 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3046 | if ok and result then |
| 3047 | cyl:Destroy() |
| 3048 | result.Name = "Coil_3_2_B"; result.Anchored = true; result.Parent = model |
| 3049 | else |
| 3050 | cyl.Name = "Coil_3_2_B"; cyl.Parent = model |
| 3051 | end |
| 3052 | else |
| 3053 | cyl.Name = "Coil_3_2_B"; cyl.Parent = model |
| 3054 | end |
| 3055 | end |
| 3056 | do |
| 3057 | local rightV = Vector3.new(1,0,0).Unit |
| 3058 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3059 | local normalV = upV:Cross(rightV) |
| 3060 | local pos = Vector3.new(0, 0, 0.04) |
| 3061 | local cyl = Instance.new("Part") |
| 3062 | cyl.Shape = Enum.PartType.Cylinder |
| 3063 | cyl.Size = Vector3.new(0.8, 14.84, 14.84) |
| 3064 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3065 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3066 | cyl.Material = Enum.Material.Glacier |
| 3067 | cyl.MaterialVariant = "2022 Stud" |
| 3068 | cyl.Anchored = true; cyl.Parent = workspace |
| 3069 | local cuts = {} |
| 3070 | local hole = Instance.new("Part") |
| 3071 | hole.Shape = Enum.PartType.Cylinder |
| 3072 | hole.Size = Vector3.new(1, 13.24, 13.24) |
| 3073 | hole.CFrame = cyl.CFrame |
| 3074 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3075 | hole.Material = Enum.Material.Glacier |
| 3076 | hole.MaterialVariant = "2022 Stud" |
| 3077 | hole.Anchored = true; hole.Parent = workspace |
| 3078 | table.insert(cuts, hole) |
| 3079 | local angBoxes = {} |
| 3080 | do |
| 3081 | local edgeDir = 1*rightV + 0*upV |
| 3082 | local edgePerp = 0*rightV + 1*upV |
| 3083 | local cut = Instance.new("Part") |
| 3084 | cut.Size = Vector3.new(29.68, 1, 29.68) |
| 3085 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 14.84 * edgePerp, edgeDir, normalV) |
| 3086 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3087 | cut.Material = Enum.Material.Glacier |
| 3088 | cut.MaterialVariant = "2022 Stud" |
| 3089 | cut.Anchored = true; cut.Parent = workspace |
| 3090 | table.insert(angBoxes, cut) |
| 3091 | end |
| 3092 | do |
| 3093 | local edgeDir = -1*rightV + 0*upV |
| 3094 | local edgePerp = 0*rightV + -1*upV |
| 3095 | local cut = Instance.new("Part") |
| 3096 | cut.Size = Vector3.new(29.68, 1, 29.68) |
| 3097 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 14.84 * edgePerp, edgeDir, normalV) |
| 3098 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3099 | cut.Material = Enum.Material.Glacier |
| 3100 | cut.MaterialVariant = "2022 Stud" |
| 3101 | cut.Anchored = true; cut.Parent = workspace |
| 3102 | table.insert(angBoxes, cut) |
| 3103 | end |
| 3104 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3105 | if #cuts > 0 then |
| 3106 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3107 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3108 | if ok and result then |
| 3109 | cyl:Destroy() |
| 3110 | result.Name = "Coil_3_3_A"; result.Anchored = true; result.Parent = model |
| 3111 | else |
| 3112 | cyl.Name = "Coil_3_3_A"; cyl.Parent = model |
| 3113 | end |
| 3114 | else |
| 3115 | cyl.Name = "Coil_3_3_A"; cyl.Parent = model |
| 3116 | end |
| 3117 | end |
| 3118 | do |
| 3119 | local rightV = Vector3.new(1,0,0).Unit |
| 3120 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3121 | local normalV = upV:Cross(rightV) |
| 3122 | local pos = Vector3.new(0, -0.04, 0) |
| 3123 | local cyl = Instance.new("Part") |
| 3124 | cyl.Shape = Enum.PartType.Cylinder |
| 3125 | cyl.Size = Vector3.new(0.8, 14.84, 14.84) |
| 3126 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3127 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3128 | cyl.Material = Enum.Material.Glacier |
| 3129 | cyl.MaterialVariant = "2022 Stud" |
| 3130 | cyl.Anchored = true; cyl.Parent = workspace |
| 3131 | local cuts = {} |
| 3132 | local hole = Instance.new("Part") |
| 3133 | hole.Shape = Enum.PartType.Cylinder |
| 3134 | hole.Size = Vector3.new(1, 13.24, 13.24) |
| 3135 | hole.CFrame = cyl.CFrame |
| 3136 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3137 | hole.Material = Enum.Material.Glacier |
| 3138 | hole.MaterialVariant = "2022 Stud" |
| 3139 | hole.Anchored = true; hole.Parent = workspace |
| 3140 | table.insert(cuts, hole) |
| 3141 | local angBoxes = {} |
| 3142 | do |
| 3143 | local edgeDir = -1*rightV + 0*upV |
| 3144 | local edgePerp = 0*rightV + -1*upV |
| 3145 | local cut = Instance.new("Part") |
| 3146 | cut.Size = Vector3.new(29.68, 1, 29.68) |
| 3147 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 14.84 * edgePerp, edgeDir, normalV) |
| 3148 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3149 | cut.Material = Enum.Material.Glacier |
| 3150 | cut.MaterialVariant = "2022 Stud" |
| 3151 | cut.Anchored = true; cut.Parent = workspace |
| 3152 | table.insert(angBoxes, cut) |
| 3153 | end |
| 3154 | do |
| 3155 | local edgeDir = 1*rightV + 0*upV |
| 3156 | local edgePerp = 0*rightV + 1*upV |
| 3157 | local cut = Instance.new("Part") |
| 3158 | cut.Size = Vector3.new(29.68, 1, 29.68) |
| 3159 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 14.84 * edgePerp, edgeDir, normalV) |
| 3160 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3161 | cut.Material = Enum.Material.Glacier |
| 3162 | cut.MaterialVariant = "2022 Stud" |
| 3163 | cut.Anchored = true; cut.Parent = workspace |
| 3164 | table.insert(angBoxes, cut) |
| 3165 | end |
| 3166 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3167 | if #cuts > 0 then |
| 3168 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3169 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3170 | if ok and result then |
| 3171 | cyl:Destroy() |
| 3172 | result.Name = "Coil_3_3_B"; result.Anchored = true; result.Parent = model |
| 3173 | else |
| 3174 | cyl.Name = "Coil_3_3_B"; cyl.Parent = model |
| 3175 | end |
| 3176 | else |
| 3177 | cyl.Name = "Coil_3_3_B"; cyl.Parent = model |
| 3178 | end |
| 3179 | end |
| 3180 | do |
| 3181 | local rightV = Vector3.new(1,0,0).Unit |
| 3182 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3183 | local normalV = upV:Cross(rightV) |
| 3184 | local pos = Vector3.new(0, 0.12, 0.04) |
| 3185 | local cyl = Instance.new("Part") |
| 3186 | cyl.Shape = Enum.PartType.Cylinder |
| 3187 | cyl.Size = Vector3.new(0.8, 16.8, 16.8) |
| 3188 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3189 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3190 | cyl.Material = Enum.Material.Glacier |
| 3191 | cyl.MaterialVariant = "2022 Stud" |
| 3192 | cyl.Anchored = true; cyl.Parent = workspace |
| 3193 | local cuts = {} |
| 3194 | local hole = Instance.new("Part") |
| 3195 | hole.Shape = Enum.PartType.Cylinder |
| 3196 | hole.Size = Vector3.new(1, 15.2, 15.2) |
| 3197 | hole.CFrame = cyl.CFrame |
| 3198 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3199 | hole.Material = Enum.Material.Glacier |
| 3200 | hole.MaterialVariant = "2022 Stud" |
| 3201 | hole.Anchored = true; hole.Parent = workspace |
| 3202 | table.insert(cuts, hole) |
| 3203 | local angBoxes = {} |
| 3204 | do |
| 3205 | local edgeDir = 1*rightV + 0*upV |
| 3206 | local edgePerp = 0*rightV + 1*upV |
| 3207 | local cut = Instance.new("Part") |
| 3208 | cut.Size = Vector3.new(33.6, 1, 33.6) |
| 3209 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.8 * edgePerp, edgeDir, normalV) |
| 3210 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3211 | cut.Material = Enum.Material.Glacier |
| 3212 | cut.MaterialVariant = "2022 Stud" |
| 3213 | cut.Anchored = true; cut.Parent = workspace |
| 3214 | table.insert(angBoxes, cut) |
| 3215 | end |
| 3216 | do |
| 3217 | local edgeDir = -1*rightV + 0*upV |
| 3218 | local edgePerp = 0*rightV + -1*upV |
| 3219 | local cut = Instance.new("Part") |
| 3220 | cut.Size = Vector3.new(33.6, 1, 33.6) |
| 3221 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.8 * edgePerp, edgeDir, normalV) |
| 3222 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3223 | cut.Material = Enum.Material.Glacier |
| 3224 | cut.MaterialVariant = "2022 Stud" |
| 3225 | cut.Anchored = true; cut.Parent = workspace |
| 3226 | table.insert(angBoxes, cut) |
| 3227 | end |
| 3228 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3229 | if #cuts > 0 then |
| 3230 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3231 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3232 | if ok and result then |
| 3233 | cyl:Destroy() |
| 3234 | result.Name = "Coil_3_4_A"; result.Anchored = true; result.Parent = model |
| 3235 | else |
| 3236 | cyl.Name = "Coil_3_4_A"; cyl.Parent = model |
| 3237 | end |
| 3238 | else |
| 3239 | cyl.Name = "Coil_3_4_A"; cyl.Parent = model |
| 3240 | end |
| 3241 | end |
| 3242 | do |
| 3243 | local rightV = Vector3.new(1,0,0).Unit |
| 3244 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3245 | local normalV = upV:Cross(rightV) |
| 3246 | local pos = Vector3.new(0, 0, 0) |
| 3247 | local cyl = Instance.new("Part") |
| 3248 | cyl.Shape = Enum.PartType.Cylinder |
| 3249 | cyl.Size = Vector3.new(0.8, 16.8, 16.8) |
| 3250 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3251 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3252 | cyl.Material = Enum.Material.Glacier |
| 3253 | cyl.MaterialVariant = "2022 Stud" |
| 3254 | cyl.Anchored = true; cyl.Parent = workspace |
| 3255 | local cuts = {} |
| 3256 | local hole = Instance.new("Part") |
| 3257 | hole.Shape = Enum.PartType.Cylinder |
| 3258 | hole.Size = Vector3.new(1, 15.2, 15.2) |
| 3259 | hole.CFrame = cyl.CFrame |
| 3260 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3261 | hole.Material = Enum.Material.Glacier |
| 3262 | hole.MaterialVariant = "2022 Stud" |
| 3263 | hole.Anchored = true; hole.Parent = workspace |
| 3264 | table.insert(cuts, hole) |
| 3265 | local angBoxes = {} |
| 3266 | do |
| 3267 | local edgeDir = -1*rightV + 0*upV |
| 3268 | local edgePerp = 0*rightV + -1*upV |
| 3269 | local cut = Instance.new("Part") |
| 3270 | cut.Size = Vector3.new(33.6, 1, 33.6) |
| 3271 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.8 * edgePerp, edgeDir, normalV) |
| 3272 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3273 | cut.Material = Enum.Material.Glacier |
| 3274 | cut.MaterialVariant = "2022 Stud" |
| 3275 | cut.Anchored = true; cut.Parent = workspace |
| 3276 | table.insert(angBoxes, cut) |
| 3277 | end |
| 3278 | do |
| 3279 | local edgeDir = 1*rightV + 0*upV |
| 3280 | local edgePerp = 0*rightV + 1*upV |
| 3281 | local cut = Instance.new("Part") |
| 3282 | cut.Size = Vector3.new(33.6, 1, 33.6) |
| 3283 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.8 * edgePerp, edgeDir, normalV) |
| 3284 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3285 | cut.Material = Enum.Material.Glacier |
| 3286 | cut.MaterialVariant = "2022 Stud" |
| 3287 | cut.Anchored = true; cut.Parent = workspace |
| 3288 | table.insert(angBoxes, cut) |
| 3289 | end |
| 3290 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3291 | if #cuts > 0 then |
| 3292 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3293 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3294 | if ok and result then |
| 3295 | cyl:Destroy() |
| 3296 | result.Name = "Coil_3_4_B"; result.Anchored = true; result.Parent = model |
| 3297 | else |
| 3298 | cyl.Name = "Coil_3_4_B"; cyl.Parent = model |
| 3299 | end |
| 3300 | else |
| 3301 | cyl.Name = "Coil_3_4_B"; cyl.Parent = model |
| 3302 | end |
| 3303 | end |
| 3304 | do |
| 3305 | local rightV = Vector3.new(1,0,0).Unit |
| 3306 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3307 | local normalV = upV:Cross(rightV) |
| 3308 | local pos = Vector3.new(0, -0.04, 0.04) |
| 3309 | local cyl = Instance.new("Part") |
| 3310 | cyl.Shape = Enum.PartType.Cylinder |
| 3311 | cyl.Size = Vector3.new(0.8, 18.76, 18.76) |
| 3312 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3313 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3314 | cyl.Material = Enum.Material.Glacier |
| 3315 | cyl.MaterialVariant = "2022 Stud" |
| 3316 | cyl.Anchored = true; cyl.Parent = workspace |
| 3317 | local cuts = {} |
| 3318 | local hole = Instance.new("Part") |
| 3319 | hole.Shape = Enum.PartType.Cylinder |
| 3320 | hole.Size = Vector3.new(1, 17.16, 17.16) |
| 3321 | hole.CFrame = cyl.CFrame |
| 3322 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3323 | hole.Material = Enum.Material.Glacier |
| 3324 | hole.MaterialVariant = "2022 Stud" |
| 3325 | hole.Anchored = true; hole.Parent = workspace |
| 3326 | table.insert(cuts, hole) |
| 3327 | local angBoxes = {} |
| 3328 | do |
| 3329 | local edgeDir = 1*rightV + 0*upV |
| 3330 | local edgePerp = 0*rightV + 1*upV |
| 3331 | local cut = Instance.new("Part") |
| 3332 | cut.Size = Vector3.new(37.52, 1, 37.52) |
| 3333 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.76 * edgePerp, edgeDir, normalV) |
| 3334 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3335 | cut.Material = Enum.Material.Glacier |
| 3336 | cut.MaterialVariant = "2022 Stud" |
| 3337 | cut.Anchored = true; cut.Parent = workspace |
| 3338 | table.insert(angBoxes, cut) |
| 3339 | end |
| 3340 | do |
| 3341 | local edgeDir = -1*rightV + 0*upV |
| 3342 | local edgePerp = 0*rightV + -1*upV |
| 3343 | local cut = Instance.new("Part") |
| 3344 | cut.Size = Vector3.new(37.52, 1, 37.52) |
| 3345 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.76 * edgePerp, edgeDir, normalV) |
| 3346 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3347 | cut.Material = Enum.Material.Glacier |
| 3348 | cut.MaterialVariant = "2022 Stud" |
| 3349 | cut.Anchored = true; cut.Parent = workspace |
| 3350 | table.insert(angBoxes, cut) |
| 3351 | end |
| 3352 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3353 | if #cuts > 0 then |
| 3354 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3355 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3356 | if ok and result then |
| 3357 | cyl:Destroy() |
| 3358 | result.Name = "Coil_3_5_A"; result.Anchored = true; result.Parent = model |
| 3359 | else |
| 3360 | cyl.Name = "Coil_3_5_A"; cyl.Parent = model |
| 3361 | end |
| 3362 | else |
| 3363 | cyl.Name = "Coil_3_5_A"; cyl.Parent = model |
| 3364 | end |
| 3365 | end |
| 3366 | do |
| 3367 | local rightV = Vector3.new(1,0,0).Unit |
| 3368 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3369 | local normalV = upV:Cross(rightV) |
| 3370 | local pos = Vector3.new(0, -0.08, 0) |
| 3371 | local cyl = Instance.new("Part") |
| 3372 | cyl.Shape = Enum.PartType.Cylinder |
| 3373 | cyl.Size = Vector3.new(0.8, 18.76, 18.76) |
| 3374 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3375 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3376 | cyl.Material = Enum.Material.Glacier |
| 3377 | cyl.MaterialVariant = "2022 Stud" |
| 3378 | cyl.Anchored = true; cyl.Parent = workspace |
| 3379 | local cuts = {} |
| 3380 | local hole = Instance.new("Part") |
| 3381 | hole.Shape = Enum.PartType.Cylinder |
| 3382 | hole.Size = Vector3.new(1, 17.16, 17.16) |
| 3383 | hole.CFrame = cyl.CFrame |
| 3384 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3385 | hole.Material = Enum.Material.Glacier |
| 3386 | hole.MaterialVariant = "2022 Stud" |
| 3387 | hole.Anchored = true; hole.Parent = workspace |
| 3388 | table.insert(cuts, hole) |
| 3389 | local angBoxes = {} |
| 3390 | do |
| 3391 | local edgeDir = -1*rightV + 0*upV |
| 3392 | local edgePerp = 0*rightV + -1*upV |
| 3393 | local cut = Instance.new("Part") |
| 3394 | cut.Size = Vector3.new(37.52, 1, 37.52) |
| 3395 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.76 * edgePerp, edgeDir, normalV) |
| 3396 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3397 | cut.Material = Enum.Material.Glacier |
| 3398 | cut.MaterialVariant = "2022 Stud" |
| 3399 | cut.Anchored = true; cut.Parent = workspace |
| 3400 | table.insert(angBoxes, cut) |
| 3401 | end |
| 3402 | do |
| 3403 | local edgeDir = 1*rightV + 0*upV |
| 3404 | local edgePerp = 0*rightV + 1*upV |
| 3405 | local cut = Instance.new("Part") |
| 3406 | cut.Size = Vector3.new(37.52, 1, 37.52) |
| 3407 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.76 * edgePerp, edgeDir, normalV) |
| 3408 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3409 | cut.Material = Enum.Material.Glacier |
| 3410 | cut.MaterialVariant = "2022 Stud" |
| 3411 | cut.Anchored = true; cut.Parent = workspace |
| 3412 | table.insert(angBoxes, cut) |
| 3413 | end |
| 3414 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3415 | if #cuts > 0 then |
| 3416 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3417 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3418 | if ok and result then |
| 3419 | cyl:Destroy() |
| 3420 | result.Name = "Coil_3_5_B"; result.Anchored = true; result.Parent = model |
| 3421 | else |
| 3422 | cyl.Name = "Coil_3_5_B"; cyl.Parent = model |
| 3423 | end |
| 3424 | else |
| 3425 | cyl.Name = "Coil_3_5_B"; cyl.Parent = model |
| 3426 | end |
| 3427 | end |
| 3428 | do |
| 3429 | local rightV = Vector3.new(1,0,0).Unit |
| 3430 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3431 | local normalV = upV:Cross(rightV) |
| 3432 | local pos = Vector3.new(0, 0.94, 0.04) |
| 3433 | local cyl = Instance.new("Part") |
| 3434 | cyl.Shape = Enum.PartType.Cylinder |
| 3435 | cyl.Size = Vector3.new(0.8, 9.6, 9.6) |
| 3436 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3437 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3438 | cyl.Material = Enum.Material.Glacier |
| 3439 | cyl.MaterialVariant = "2022 Stud" |
| 3440 | cyl.Anchored = true; cyl.Parent = workspace |
| 3441 | local cuts = {} |
| 3442 | local hole = Instance.new("Part") |
| 3443 | hole.Shape = Enum.PartType.Cylinder |
| 3444 | hole.Size = Vector3.new(1, 8, 8) |
| 3445 | hole.CFrame = cyl.CFrame |
| 3446 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3447 | hole.Material = Enum.Material.Glacier |
| 3448 | hole.MaterialVariant = "2022 Stud" |
| 3449 | hole.Anchored = true; hole.Parent = workspace |
| 3450 | table.insert(cuts, hole) |
| 3451 | local angBoxes = {} |
| 3452 | do |
| 3453 | local edgeDir = 1*rightV + 0*upV |
| 3454 | local edgePerp = 0*rightV + 1*upV |
| 3455 | local cut = Instance.new("Part") |
| 3456 | cut.Size = Vector3.new(19.2, 1, 19.2) |
| 3457 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.6 * edgePerp, edgeDir, normalV) |
| 3458 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3459 | cut.Material = Enum.Material.Glacier |
| 3460 | cut.MaterialVariant = "2022 Stud" |
| 3461 | cut.Anchored = true; cut.Parent = workspace |
| 3462 | table.insert(angBoxes, cut) |
| 3463 | end |
| 3464 | do |
| 3465 | local edgeDir = -1*rightV + 0*upV |
| 3466 | local edgePerp = 0*rightV + -1*upV |
| 3467 | local cut = Instance.new("Part") |
| 3468 | cut.Size = Vector3.new(19.2, 1, 19.2) |
| 3469 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.6 * edgePerp, edgeDir, normalV) |
| 3470 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3471 | cut.Material = Enum.Material.Glacier |
| 3472 | cut.MaterialVariant = "2022 Stud" |
| 3473 | cut.Anchored = true; cut.Parent = workspace |
| 3474 | table.insert(angBoxes, cut) |
| 3475 | end |
| 3476 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3477 | if #cuts > 0 then |
| 3478 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3479 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3480 | if ok and result then |
| 3481 | cyl:Destroy() |
| 3482 | result.Name = "Coil_4_0_A"; result.Anchored = true; result.Parent = model |
| 3483 | else |
| 3484 | cyl.Name = "Coil_4_0_A"; cyl.Parent = model |
| 3485 | end |
| 3486 | else |
| 3487 | cyl.Name = "Coil_4_0_A"; cyl.Parent = model |
| 3488 | end |
| 3489 | end |
| 3490 | do |
| 3491 | local rightV = Vector3.new(1,0,0).Unit |
| 3492 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3493 | local normalV = upV:Cross(rightV) |
| 3494 | local pos = Vector3.new(0, 0.94, 0) |
| 3495 | local cyl = Instance.new("Part") |
| 3496 | cyl.Shape = Enum.PartType.Cylinder |
| 3497 | cyl.Size = Vector3.new(0.8, 9.6, 9.6) |
| 3498 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3499 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3500 | cyl.Material = Enum.Material.Glacier |
| 3501 | cyl.MaterialVariant = "2022 Stud" |
| 3502 | cyl.Anchored = true; cyl.Parent = workspace |
| 3503 | local cuts = {} |
| 3504 | local hole = Instance.new("Part") |
| 3505 | hole.Shape = Enum.PartType.Cylinder |
| 3506 | hole.Size = Vector3.new(1, 8, 8) |
| 3507 | hole.CFrame = cyl.CFrame |
| 3508 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3509 | hole.Material = Enum.Material.Glacier |
| 3510 | hole.MaterialVariant = "2022 Stud" |
| 3511 | hole.Anchored = true; hole.Parent = workspace |
| 3512 | table.insert(cuts, hole) |
| 3513 | local angBoxes = {} |
| 3514 | do |
| 3515 | local edgeDir = -1*rightV + 0*upV |
| 3516 | local edgePerp = 0*rightV + -1*upV |
| 3517 | local cut = Instance.new("Part") |
| 3518 | cut.Size = Vector3.new(19.2, 1, 19.2) |
| 3519 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.6 * edgePerp, edgeDir, normalV) |
| 3520 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3521 | cut.Material = Enum.Material.Glacier |
| 3522 | cut.MaterialVariant = "2022 Stud" |
| 3523 | cut.Anchored = true; cut.Parent = workspace |
| 3524 | table.insert(angBoxes, cut) |
| 3525 | end |
| 3526 | do |
| 3527 | local edgeDir = 1*rightV + 0*upV |
| 3528 | local edgePerp = 0*rightV + 1*upV |
| 3529 | local cut = Instance.new("Part") |
| 3530 | cut.Size = Vector3.new(19.2, 1, 19.2) |
| 3531 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.6 * edgePerp, edgeDir, normalV) |
| 3532 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3533 | cut.Material = Enum.Material.Glacier |
| 3534 | cut.MaterialVariant = "2022 Stud" |
| 3535 | cut.Anchored = true; cut.Parent = workspace |
| 3536 | table.insert(angBoxes, cut) |
| 3537 | end |
| 3538 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3539 | if #cuts > 0 then |
| 3540 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3541 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3542 | if ok and result then |
| 3543 | cyl:Destroy() |
| 3544 | result.Name = "Coil_4_0_B"; result.Anchored = true; result.Parent = model |
| 3545 | else |
| 3546 | cyl.Name = "Coil_4_0_B"; cyl.Parent = model |
| 3547 | end |
| 3548 | else |
| 3549 | cyl.Name = "Coil_4_0_B"; cyl.Parent = model |
| 3550 | end |
| 3551 | end |
| 3552 | do |
| 3553 | local rightV = Vector3.new(1,0,0).Unit |
| 3554 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3555 | local normalV = upV:Cross(rightV) |
| 3556 | local pos = Vector3.new(0, 0.9, 0.12) |
| 3557 | local cyl = Instance.new("Part") |
| 3558 | cyl.Shape = Enum.PartType.Cylinder |
| 3559 | cyl.Size = Vector3.new(0.8, 11.56, 11.56) |
| 3560 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3561 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3562 | cyl.Material = Enum.Material.Glacier |
| 3563 | cyl.MaterialVariant = "2022 Stud" |
| 3564 | cyl.Anchored = true; cyl.Parent = workspace |
| 3565 | local cuts = {} |
| 3566 | local hole = Instance.new("Part") |
| 3567 | hole.Shape = Enum.PartType.Cylinder |
| 3568 | hole.Size = Vector3.new(1, 9.96, 9.96) |
| 3569 | hole.CFrame = cyl.CFrame |
| 3570 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3571 | hole.Material = Enum.Material.Glacier |
| 3572 | hole.MaterialVariant = "2022 Stud" |
| 3573 | hole.Anchored = true; hole.Parent = workspace |
| 3574 | table.insert(cuts, hole) |
| 3575 | local angBoxes = {} |
| 3576 | do |
| 3577 | local edgeDir = 1*rightV + 0*upV |
| 3578 | local edgePerp = 0*rightV + 1*upV |
| 3579 | local cut = Instance.new("Part") |
| 3580 | cut.Size = Vector3.new(23.12, 1, 23.12) |
| 3581 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.56 * edgePerp, edgeDir, normalV) |
| 3582 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3583 | cut.Material = Enum.Material.Glacier |
| 3584 | cut.MaterialVariant = "2022 Stud" |
| 3585 | cut.Anchored = true; cut.Parent = workspace |
| 3586 | table.insert(angBoxes, cut) |
| 3587 | end |
| 3588 | do |
| 3589 | local edgeDir = -1*rightV + 0*upV |
| 3590 | local edgePerp = 0*rightV + -1*upV |
| 3591 | local cut = Instance.new("Part") |
| 3592 | cut.Size = Vector3.new(23.12, 1, 23.12) |
| 3593 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.56 * edgePerp, edgeDir, normalV) |
| 3594 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3595 | cut.Material = Enum.Material.Glacier |
| 3596 | cut.MaterialVariant = "2022 Stud" |
| 3597 | cut.Anchored = true; cut.Parent = workspace |
| 3598 | table.insert(angBoxes, cut) |
| 3599 | end |
| 3600 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3601 | if #cuts > 0 then |
| 3602 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3603 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3604 | if ok and result then |
| 3605 | cyl:Destroy() |
| 3606 | result.Name = "Coil_4_1_A"; result.Anchored = true; result.Parent = model |
| 3607 | else |
| 3608 | cyl.Name = "Coil_4_1_A"; cyl.Parent = model |
| 3609 | end |
| 3610 | else |
| 3611 | cyl.Name = "Coil_4_1_A"; cyl.Parent = model |
| 3612 | end |
| 3613 | end |
| 3614 | do |
| 3615 | local rightV = Vector3.new(1,0,0).Unit |
| 3616 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3617 | local normalV = upV:Cross(rightV) |
| 3618 | local pos = Vector3.new(0, 0.86, 0.08) |
| 3619 | local cyl = Instance.new("Part") |
| 3620 | cyl.Shape = Enum.PartType.Cylinder |
| 3621 | cyl.Size = Vector3.new(0.8, 11.56, 11.56) |
| 3622 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3623 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3624 | cyl.Material = Enum.Material.Glacier |
| 3625 | cyl.MaterialVariant = "2022 Stud" |
| 3626 | cyl.Anchored = true; cyl.Parent = workspace |
| 3627 | local cuts = {} |
| 3628 | local hole = Instance.new("Part") |
| 3629 | hole.Shape = Enum.PartType.Cylinder |
| 3630 | hole.Size = Vector3.new(1, 9.96, 9.96) |
| 3631 | hole.CFrame = cyl.CFrame |
| 3632 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3633 | hole.Material = Enum.Material.Glacier |
| 3634 | hole.MaterialVariant = "2022 Stud" |
| 3635 | hole.Anchored = true; hole.Parent = workspace |
| 3636 | table.insert(cuts, hole) |
| 3637 | local angBoxes = {} |
| 3638 | do |
| 3639 | local edgeDir = -1*rightV + 0*upV |
| 3640 | local edgePerp = 0*rightV + -1*upV |
| 3641 | local cut = Instance.new("Part") |
| 3642 | cut.Size = Vector3.new(23.12, 1, 23.12) |
| 3643 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.56 * edgePerp, edgeDir, normalV) |
| 3644 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3645 | cut.Material = Enum.Material.Glacier |
| 3646 | cut.MaterialVariant = "2022 Stud" |
| 3647 | cut.Anchored = true; cut.Parent = workspace |
| 3648 | table.insert(angBoxes, cut) |
| 3649 | end |
| 3650 | do |
| 3651 | local edgeDir = 1*rightV + 0*upV |
| 3652 | local edgePerp = 0*rightV + 1*upV |
| 3653 | local cut = Instance.new("Part") |
| 3654 | cut.Size = Vector3.new(23.12, 1, 23.12) |
| 3655 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.56 * edgePerp, edgeDir, normalV) |
| 3656 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3657 | cut.Material = Enum.Material.Glacier |
| 3658 | cut.MaterialVariant = "2022 Stud" |
| 3659 | cut.Anchored = true; cut.Parent = workspace |
| 3660 | table.insert(angBoxes, cut) |
| 3661 | end |
| 3662 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3663 | if #cuts > 0 then |
| 3664 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3665 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3666 | if ok and result then |
| 3667 | cyl:Destroy() |
| 3668 | result.Name = "Coil_4_1_B"; result.Anchored = true; result.Parent = model |
| 3669 | else |
| 3670 | cyl.Name = "Coil_4_1_B"; cyl.Parent = model |
| 3671 | end |
| 3672 | else |
| 3673 | cyl.Name = "Coil_4_1_B"; cyl.Parent = model |
| 3674 | end |
| 3675 | end |
| 3676 | do |
| 3677 | local rightV = Vector3.new(1,0,0).Unit |
| 3678 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3679 | local normalV = upV:Cross(rightV) |
| 3680 | local pos = Vector3.new(0, 0.98, 0.04) |
| 3681 | local cyl = Instance.new("Part") |
| 3682 | cyl.Shape = Enum.PartType.Cylinder |
| 3683 | cyl.Size = Vector3.new(0.8, 13.12, 13.12) |
| 3684 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3685 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3686 | cyl.Material = Enum.Material.Glacier |
| 3687 | cyl.MaterialVariant = "2022 Stud" |
| 3688 | cyl.Anchored = true; cyl.Parent = workspace |
| 3689 | local cuts = {} |
| 3690 | local hole = Instance.new("Part") |
| 3691 | hole.Shape = Enum.PartType.Cylinder |
| 3692 | hole.Size = Vector3.new(1, 11.52, 11.52) |
| 3693 | hole.CFrame = cyl.CFrame |
| 3694 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3695 | hole.Material = Enum.Material.Glacier |
| 3696 | hole.MaterialVariant = "2022 Stud" |
| 3697 | hole.Anchored = true; hole.Parent = workspace |
| 3698 | table.insert(cuts, hole) |
| 3699 | local angBoxes = {} |
| 3700 | do |
| 3701 | local edgeDir = 1*rightV + 0*upV |
| 3702 | local edgePerp = 0*rightV + 1*upV |
| 3703 | local cut = Instance.new("Part") |
| 3704 | cut.Size = Vector3.new(26.24, 1, 26.24) |
| 3705 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.12 * edgePerp, edgeDir, normalV) |
| 3706 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3707 | cut.Material = Enum.Material.Glacier |
| 3708 | cut.MaterialVariant = "2022 Stud" |
| 3709 | cut.Anchored = true; cut.Parent = workspace |
| 3710 | table.insert(angBoxes, cut) |
| 3711 | end |
| 3712 | do |
| 3713 | local edgeDir = -1*rightV + 0*upV |
| 3714 | local edgePerp = 0*rightV + -1*upV |
| 3715 | local cut = Instance.new("Part") |
| 3716 | cut.Size = Vector3.new(26.24, 1, 26.24) |
| 3717 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.12 * edgePerp, edgeDir, normalV) |
| 3718 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3719 | cut.Material = Enum.Material.Glacier |
| 3720 | cut.MaterialVariant = "2022 Stud" |
| 3721 | cut.Anchored = true; cut.Parent = workspace |
| 3722 | table.insert(angBoxes, cut) |
| 3723 | end |
| 3724 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3725 | if #cuts > 0 then |
| 3726 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3727 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3728 | if ok and result then |
| 3729 | cyl:Destroy() |
| 3730 | result.Name = "Coil_4_2_A"; result.Anchored = true; result.Parent = model |
| 3731 | else |
| 3732 | cyl.Name = "Coil_4_2_A"; cyl.Parent = model |
| 3733 | end |
| 3734 | else |
| 3735 | cyl.Name = "Coil_4_2_A"; cyl.Parent = model |
| 3736 | end |
| 3737 | end |
| 3738 | do |
| 3739 | local rightV = Vector3.new(1,0,0).Unit |
| 3740 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3741 | local normalV = upV:Cross(rightV) |
| 3742 | local pos = Vector3.new(0, 0.9, 0) |
| 3743 | local cyl = Instance.new("Part") |
| 3744 | cyl.Shape = Enum.PartType.Cylinder |
| 3745 | cyl.Size = Vector3.new(0.8, 13.12, 13.12) |
| 3746 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3747 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3748 | cyl.Material = Enum.Material.Glacier |
| 3749 | cyl.MaterialVariant = "2022 Stud" |
| 3750 | cyl.Anchored = true; cyl.Parent = workspace |
| 3751 | local cuts = {} |
| 3752 | local hole = Instance.new("Part") |
| 3753 | hole.Shape = Enum.PartType.Cylinder |
| 3754 | hole.Size = Vector3.new(1, 11.52, 11.52) |
| 3755 | hole.CFrame = cyl.CFrame |
| 3756 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3757 | hole.Material = Enum.Material.Glacier |
| 3758 | hole.MaterialVariant = "2022 Stud" |
| 3759 | hole.Anchored = true; hole.Parent = workspace |
| 3760 | table.insert(cuts, hole) |
| 3761 | local angBoxes = {} |
| 3762 | do |
| 3763 | local edgeDir = -1*rightV + 0*upV |
| 3764 | local edgePerp = 0*rightV + -1*upV |
| 3765 | local cut = Instance.new("Part") |
| 3766 | cut.Size = Vector3.new(26.24, 1, 26.24) |
| 3767 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.12 * edgePerp, edgeDir, normalV) |
| 3768 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3769 | cut.Material = Enum.Material.Glacier |
| 3770 | cut.MaterialVariant = "2022 Stud" |
| 3771 | cut.Anchored = true; cut.Parent = workspace |
| 3772 | table.insert(angBoxes, cut) |
| 3773 | end |
| 3774 | do |
| 3775 | local edgeDir = 1*rightV + 0*upV |
| 3776 | local edgePerp = 0*rightV + 1*upV |
| 3777 | local cut = Instance.new("Part") |
| 3778 | cut.Size = Vector3.new(26.24, 1, 26.24) |
| 3779 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.12 * edgePerp, edgeDir, normalV) |
| 3780 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3781 | cut.Material = Enum.Material.Glacier |
| 3782 | cut.MaterialVariant = "2022 Stud" |
| 3783 | cut.Anchored = true; cut.Parent = workspace |
| 3784 | table.insert(angBoxes, cut) |
| 3785 | end |
| 3786 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3787 | if #cuts > 0 then |
| 3788 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3789 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3790 | if ok and result then |
| 3791 | cyl:Destroy() |
| 3792 | result.Name = "Coil_4_2_B"; result.Anchored = true; result.Parent = model |
| 3793 | else |
| 3794 | cyl.Name = "Coil_4_2_B"; cyl.Parent = model |
| 3795 | end |
| 3796 | else |
| 3797 | cyl.Name = "Coil_4_2_B"; cyl.Parent = model |
| 3798 | end |
| 3799 | end |
| 3800 | do |
| 3801 | local rightV = Vector3.new(1,0,0).Unit |
| 3802 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3803 | local normalV = upV:Cross(rightV) |
| 3804 | local pos = Vector3.new(0, 0.94, 0.12) |
| 3805 | local cyl = Instance.new("Part") |
| 3806 | cyl.Shape = Enum.PartType.Cylinder |
| 3807 | cyl.Size = Vector3.new(0.8, 15.08, 15.08) |
| 3808 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3809 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3810 | cyl.Material = Enum.Material.Glacier |
| 3811 | cyl.MaterialVariant = "2022 Stud" |
| 3812 | cyl.Anchored = true; cyl.Parent = workspace |
| 3813 | local cuts = {} |
| 3814 | local hole = Instance.new("Part") |
| 3815 | hole.Shape = Enum.PartType.Cylinder |
| 3816 | hole.Size = Vector3.new(1, 13.48, 13.48) |
| 3817 | hole.CFrame = cyl.CFrame |
| 3818 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3819 | hole.Material = Enum.Material.Glacier |
| 3820 | hole.MaterialVariant = "2022 Stud" |
| 3821 | hole.Anchored = true; hole.Parent = workspace |
| 3822 | table.insert(cuts, hole) |
| 3823 | local angBoxes = {} |
| 3824 | do |
| 3825 | local edgeDir = 1*rightV + 0*upV |
| 3826 | local edgePerp = 0*rightV + 1*upV |
| 3827 | local cut = Instance.new("Part") |
| 3828 | cut.Size = Vector3.new(30.16, 1, 30.16) |
| 3829 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15.08 * edgePerp, edgeDir, normalV) |
| 3830 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3831 | cut.Material = Enum.Material.Glacier |
| 3832 | cut.MaterialVariant = "2022 Stud" |
| 3833 | cut.Anchored = true; cut.Parent = workspace |
| 3834 | table.insert(angBoxes, cut) |
| 3835 | end |
| 3836 | do |
| 3837 | local edgeDir = -1*rightV + 0*upV |
| 3838 | local edgePerp = 0*rightV + -1*upV |
| 3839 | local cut = Instance.new("Part") |
| 3840 | cut.Size = Vector3.new(30.16, 1, 30.16) |
| 3841 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15.08 * edgePerp, edgeDir, normalV) |
| 3842 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3843 | cut.Material = Enum.Material.Glacier |
| 3844 | cut.MaterialVariant = "2022 Stud" |
| 3845 | cut.Anchored = true; cut.Parent = workspace |
| 3846 | table.insert(angBoxes, cut) |
| 3847 | end |
| 3848 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3849 | if #cuts > 0 then |
| 3850 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3851 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3852 | if ok and result then |
| 3853 | cyl:Destroy() |
| 3854 | result.Name = "Coil_4_3_A"; result.Anchored = true; result.Parent = model |
| 3855 | else |
| 3856 | cyl.Name = "Coil_4_3_A"; cyl.Parent = model |
| 3857 | end |
| 3858 | else |
| 3859 | cyl.Name = "Coil_4_3_A"; cyl.Parent = model |
| 3860 | end |
| 3861 | end |
| 3862 | do |
| 3863 | local rightV = Vector3.new(1,0,0).Unit |
| 3864 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3865 | local normalV = upV:Cross(rightV) |
| 3866 | local pos = Vector3.new(0, 0.86, 0.08) |
| 3867 | local cyl = Instance.new("Part") |
| 3868 | cyl.Shape = Enum.PartType.Cylinder |
| 3869 | cyl.Size = Vector3.new(0.8, 15.08, 15.08) |
| 3870 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3871 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3872 | cyl.Material = Enum.Material.Glacier |
| 3873 | cyl.MaterialVariant = "2022 Stud" |
| 3874 | cyl.Anchored = true; cyl.Parent = workspace |
| 3875 | local cuts = {} |
| 3876 | local hole = Instance.new("Part") |
| 3877 | hole.Shape = Enum.PartType.Cylinder |
| 3878 | hole.Size = Vector3.new(1, 13.48, 13.48) |
| 3879 | hole.CFrame = cyl.CFrame |
| 3880 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3881 | hole.Material = Enum.Material.Glacier |
| 3882 | hole.MaterialVariant = "2022 Stud" |
| 3883 | hole.Anchored = true; hole.Parent = workspace |
| 3884 | table.insert(cuts, hole) |
| 3885 | local angBoxes = {} |
| 3886 | do |
| 3887 | local edgeDir = -1*rightV + 0*upV |
| 3888 | local edgePerp = 0*rightV + -1*upV |
| 3889 | local cut = Instance.new("Part") |
| 3890 | cut.Size = Vector3.new(30.16, 1, 30.16) |
| 3891 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15.08 * edgePerp, edgeDir, normalV) |
| 3892 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3893 | cut.Material = Enum.Material.Glacier |
| 3894 | cut.MaterialVariant = "2022 Stud" |
| 3895 | cut.Anchored = true; cut.Parent = workspace |
| 3896 | table.insert(angBoxes, cut) |
| 3897 | end |
| 3898 | do |
| 3899 | local edgeDir = 1*rightV + 0*upV |
| 3900 | local edgePerp = 0*rightV + 1*upV |
| 3901 | local cut = Instance.new("Part") |
| 3902 | cut.Size = Vector3.new(30.16, 1, 30.16) |
| 3903 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15.08 * edgePerp, edgeDir, normalV) |
| 3904 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3905 | cut.Material = Enum.Material.Glacier |
| 3906 | cut.MaterialVariant = "2022 Stud" |
| 3907 | cut.Anchored = true; cut.Parent = workspace |
| 3908 | table.insert(angBoxes, cut) |
| 3909 | end |
| 3910 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3911 | if #cuts > 0 then |
| 3912 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3913 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3914 | if ok and result then |
| 3915 | cyl:Destroy() |
| 3916 | result.Name = "Coil_4_3_B"; result.Anchored = true; result.Parent = model |
| 3917 | else |
| 3918 | cyl.Name = "Coil_4_3_B"; cyl.Parent = model |
| 3919 | end |
| 3920 | else |
| 3921 | cyl.Name = "Coil_4_3_B"; cyl.Parent = model |
| 3922 | end |
| 3923 | end |
| 3924 | do |
| 3925 | local rightV = Vector3.new(1,0,0).Unit |
| 3926 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3927 | local normalV = upV:Cross(rightV) |
| 3928 | local pos = Vector3.new(0, 0.98, 0.04) |
| 3929 | local cyl = Instance.new("Part") |
| 3930 | cyl.Shape = Enum.PartType.Cylinder |
| 3931 | cyl.Size = Vector3.new(0.8, 16.64, 16.64) |
| 3932 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3933 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3934 | cyl.Material = Enum.Material.Glacier |
| 3935 | cyl.MaterialVariant = "2022 Stud" |
| 3936 | cyl.Anchored = true; cyl.Parent = workspace |
| 3937 | local cuts = {} |
| 3938 | local hole = Instance.new("Part") |
| 3939 | hole.Shape = Enum.PartType.Cylinder |
| 3940 | hole.Size = Vector3.new(1, 15.04, 15.04) |
| 3941 | hole.CFrame = cyl.CFrame |
| 3942 | hole.BrickColor = BrickColor.new("Bright orange") |
| 3943 | hole.Material = Enum.Material.Glacier |
| 3944 | hole.MaterialVariant = "2022 Stud" |
| 3945 | hole.Anchored = true; hole.Parent = workspace |
| 3946 | table.insert(cuts, hole) |
| 3947 | local angBoxes = {} |
| 3948 | do |
| 3949 | local edgeDir = 1*rightV + 0*upV |
| 3950 | local edgePerp = 0*rightV + 1*upV |
| 3951 | local cut = Instance.new("Part") |
| 3952 | cut.Size = Vector3.new(33.28, 1, 33.28) |
| 3953 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.64 * edgePerp, edgeDir, normalV) |
| 3954 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3955 | cut.Material = Enum.Material.Glacier |
| 3956 | cut.MaterialVariant = "2022 Stud" |
| 3957 | cut.Anchored = true; cut.Parent = workspace |
| 3958 | table.insert(angBoxes, cut) |
| 3959 | end |
| 3960 | do |
| 3961 | local edgeDir = -1*rightV + 0*upV |
| 3962 | local edgePerp = 0*rightV + -1*upV |
| 3963 | local cut = Instance.new("Part") |
| 3964 | cut.Size = Vector3.new(33.28, 1, 33.28) |
| 3965 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.64 * edgePerp, edgeDir, normalV) |
| 3966 | cut.BrickColor = BrickColor.new("Bright orange") |
| 3967 | cut.Material = Enum.Material.Glacier |
| 3968 | cut.MaterialVariant = "2022 Stud" |
| 3969 | cut.Anchored = true; cut.Parent = workspace |
| 3970 | table.insert(angBoxes, cut) |
| 3971 | end |
| 3972 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 3973 | if #cuts > 0 then |
| 3974 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 3975 | for _, c in ipairs(cuts) do c:Destroy() end |
| 3976 | if ok and result then |
| 3977 | cyl:Destroy() |
| 3978 | result.Name = "Coil_4_4_A"; result.Anchored = true; result.Parent = model |
| 3979 | else |
| 3980 | cyl.Name = "Coil_4_4_A"; cyl.Parent = model |
| 3981 | end |
| 3982 | else |
| 3983 | cyl.Name = "Coil_4_4_A"; cyl.Parent = model |
| 3984 | end |
| 3985 | end |
| 3986 | do |
| 3987 | local rightV = Vector3.new(1,0,0).Unit |
| 3988 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 3989 | local normalV = upV:Cross(rightV) |
| 3990 | local pos = Vector3.new(0, 0.94, 0) |
| 3991 | local cyl = Instance.new("Part") |
| 3992 | cyl.Shape = Enum.PartType.Cylinder |
| 3993 | cyl.Size = Vector3.new(0.8, 16.64, 16.64) |
| 3994 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 3995 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 3996 | cyl.Material = Enum.Material.Glacier |
| 3997 | cyl.MaterialVariant = "2022 Stud" |
| 3998 | cyl.Anchored = true; cyl.Parent = workspace |
| 3999 | local cuts = {} |
| 4000 | local hole = Instance.new("Part") |
| 4001 | hole.Shape = Enum.PartType.Cylinder |
| 4002 | hole.Size = Vector3.new(1, 15.04, 15.04) |
| 4003 | hole.CFrame = cyl.CFrame |
| 4004 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4005 | hole.Material = Enum.Material.Glacier |
| 4006 | hole.MaterialVariant = "2022 Stud" |
| 4007 | hole.Anchored = true; hole.Parent = workspace |
| 4008 | table.insert(cuts, hole) |
| 4009 | local angBoxes = {} |
| 4010 | do |
| 4011 | local edgeDir = -1*rightV + 0*upV |
| 4012 | local edgePerp = 0*rightV + -1*upV |
| 4013 | local cut = Instance.new("Part") |
| 4014 | cut.Size = Vector3.new(33.28, 1, 33.28) |
| 4015 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.64 * edgePerp, edgeDir, normalV) |
| 4016 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4017 | cut.Material = Enum.Material.Glacier |
| 4018 | cut.MaterialVariant = "2022 Stud" |
| 4019 | cut.Anchored = true; cut.Parent = workspace |
| 4020 | table.insert(angBoxes, cut) |
| 4021 | end |
| 4022 | do |
| 4023 | local edgeDir = 1*rightV + 0*upV |
| 4024 | local edgePerp = 0*rightV + 1*upV |
| 4025 | local cut = Instance.new("Part") |
| 4026 | cut.Size = Vector3.new(33.28, 1, 33.28) |
| 4027 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.64 * edgePerp, edgeDir, normalV) |
| 4028 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4029 | cut.Material = Enum.Material.Glacier |
| 4030 | cut.MaterialVariant = "2022 Stud" |
| 4031 | cut.Anchored = true; cut.Parent = workspace |
| 4032 | table.insert(angBoxes, cut) |
| 4033 | end |
| 4034 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4035 | if #cuts > 0 then |
| 4036 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4037 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4038 | if ok and result then |
| 4039 | cyl:Destroy() |
| 4040 | result.Name = "Coil_4_4_B"; result.Anchored = true; result.Parent = model |
| 4041 | else |
| 4042 | cyl.Name = "Coil_4_4_B"; cyl.Parent = model |
| 4043 | end |
| 4044 | else |
| 4045 | cyl.Name = "Coil_4_4_B"; cyl.Parent = model |
| 4046 | end |
| 4047 | end |
| 4048 | do |
| 4049 | local rightV = Vector3.new(1,0,0).Unit |
| 4050 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4051 | local normalV = upV:Cross(rightV) |
| 4052 | local pos = Vector3.new(0, 0.86, 0.04) |
| 4053 | local cyl = Instance.new("Part") |
| 4054 | cyl.Shape = Enum.PartType.Cylinder |
| 4055 | cyl.Size = Vector3.new(0.8, 18.6, 18.6) |
| 4056 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4057 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4058 | cyl.Material = Enum.Material.Glacier |
| 4059 | cyl.MaterialVariant = "2022 Stud" |
| 4060 | cyl.Anchored = true; cyl.Parent = workspace |
| 4061 | local cuts = {} |
| 4062 | local hole = Instance.new("Part") |
| 4063 | hole.Shape = Enum.PartType.Cylinder |
| 4064 | hole.Size = Vector3.new(1, 17, 17) |
| 4065 | hole.CFrame = cyl.CFrame |
| 4066 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4067 | hole.Material = Enum.Material.Glacier |
| 4068 | hole.MaterialVariant = "2022 Stud" |
| 4069 | hole.Anchored = true; hole.Parent = workspace |
| 4070 | table.insert(cuts, hole) |
| 4071 | local angBoxes = {} |
| 4072 | do |
| 4073 | local edgeDir = 1*rightV + 0*upV |
| 4074 | local edgePerp = 0*rightV + 1*upV |
| 4075 | local cut = Instance.new("Part") |
| 4076 | cut.Size = Vector3.new(37.2, 1, 37.2) |
| 4077 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.6 * edgePerp, edgeDir, normalV) |
| 4078 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4079 | cut.Material = Enum.Material.Glacier |
| 4080 | cut.MaterialVariant = "2022 Stud" |
| 4081 | cut.Anchored = true; cut.Parent = workspace |
| 4082 | table.insert(angBoxes, cut) |
| 4083 | end |
| 4084 | do |
| 4085 | local edgeDir = -1*rightV + 0*upV |
| 4086 | local edgePerp = 0*rightV + -1*upV |
| 4087 | local cut = Instance.new("Part") |
| 4088 | cut.Size = Vector3.new(37.2, 1, 37.2) |
| 4089 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.6 * edgePerp, edgeDir, normalV) |
| 4090 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4091 | cut.Material = Enum.Material.Glacier |
| 4092 | cut.MaterialVariant = "2022 Stud" |
| 4093 | cut.Anchored = true; cut.Parent = workspace |
| 4094 | table.insert(angBoxes, cut) |
| 4095 | end |
| 4096 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4097 | if #cuts > 0 then |
| 4098 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4099 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4100 | if ok and result then |
| 4101 | cyl:Destroy() |
| 4102 | result.Name = "Coil_4_5_A"; result.Anchored = true; result.Parent = model |
| 4103 | else |
| 4104 | cyl.Name = "Coil_4_5_A"; cyl.Parent = model |
| 4105 | end |
| 4106 | else |
| 4107 | cyl.Name = "Coil_4_5_A"; cyl.Parent = model |
| 4108 | end |
| 4109 | end |
| 4110 | do |
| 4111 | local rightV = Vector3.new(1,0,0).Unit |
| 4112 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4113 | local normalV = upV:Cross(rightV) |
| 4114 | local pos = Vector3.new(0, 0.82, 0) |
| 4115 | local cyl = Instance.new("Part") |
| 4116 | cyl.Shape = Enum.PartType.Cylinder |
| 4117 | cyl.Size = Vector3.new(0.8, 18.6, 18.6) |
| 4118 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4119 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4120 | cyl.Material = Enum.Material.Glacier |
| 4121 | cyl.MaterialVariant = "2022 Stud" |
| 4122 | cyl.Anchored = true; cyl.Parent = workspace |
| 4123 | local cuts = {} |
| 4124 | local hole = Instance.new("Part") |
| 4125 | hole.Shape = Enum.PartType.Cylinder |
| 4126 | hole.Size = Vector3.new(1, 17, 17) |
| 4127 | hole.CFrame = cyl.CFrame |
| 4128 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4129 | hole.Material = Enum.Material.Glacier |
| 4130 | hole.MaterialVariant = "2022 Stud" |
| 4131 | hole.Anchored = true; hole.Parent = workspace |
| 4132 | table.insert(cuts, hole) |
| 4133 | local angBoxes = {} |
| 4134 | do |
| 4135 | local edgeDir = -1*rightV + 0*upV |
| 4136 | local edgePerp = 0*rightV + -1*upV |
| 4137 | local cut = Instance.new("Part") |
| 4138 | cut.Size = Vector3.new(37.2, 1, 37.2) |
| 4139 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.6 * edgePerp, edgeDir, normalV) |
| 4140 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4141 | cut.Material = Enum.Material.Glacier |
| 4142 | cut.MaterialVariant = "2022 Stud" |
| 4143 | cut.Anchored = true; cut.Parent = workspace |
| 4144 | table.insert(angBoxes, cut) |
| 4145 | end |
| 4146 | do |
| 4147 | local edgeDir = 1*rightV + 0*upV |
| 4148 | local edgePerp = 0*rightV + 1*upV |
| 4149 | local cut = Instance.new("Part") |
| 4150 | cut.Size = Vector3.new(37.2, 1, 37.2) |
| 4151 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.6 * edgePerp, edgeDir, normalV) |
| 4152 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4153 | cut.Material = Enum.Material.Glacier |
| 4154 | cut.MaterialVariant = "2022 Stud" |
| 4155 | cut.Anchored = true; cut.Parent = workspace |
| 4156 | table.insert(angBoxes, cut) |
| 4157 | end |
| 4158 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4159 | if #cuts > 0 then |
| 4160 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4161 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4162 | if ok and result then |
| 4163 | cyl:Destroy() |
| 4164 | result.Name = "Coil_4_5_B"; result.Anchored = true; result.Parent = model |
| 4165 | else |
| 4166 | cyl.Name = "Coil_4_5_B"; cyl.Parent = model |
| 4167 | end |
| 4168 | else |
| 4169 | cyl.Name = "Coil_4_5_B"; cyl.Parent = model |
| 4170 | end |
| 4171 | end |
| 4172 | do |
| 4173 | local rightV = Vector3.new(1,0,0).Unit |
| 4174 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4175 | local normalV = upV:Cross(rightV) |
| 4176 | local pos = Vector3.new(0, 1.84, 0.04) |
| 4177 | local cyl = Instance.new("Part") |
| 4178 | cyl.Shape = Enum.PartType.Cylinder |
| 4179 | cyl.Size = Vector3.new(0.8, 9.44, 9.44) |
| 4180 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4181 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4182 | cyl.Material = Enum.Material.Glacier |
| 4183 | cyl.MaterialVariant = "2022 Stud" |
| 4184 | cyl.Anchored = true; cyl.Parent = workspace |
| 4185 | local cuts = {} |
| 4186 | local hole = Instance.new("Part") |
| 4187 | hole.Shape = Enum.PartType.Cylinder |
| 4188 | hole.Size = Vector3.new(1, 7.84, 7.84) |
| 4189 | hole.CFrame = cyl.CFrame |
| 4190 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4191 | hole.Material = Enum.Material.Glacier |
| 4192 | hole.MaterialVariant = "2022 Stud" |
| 4193 | hole.Anchored = true; hole.Parent = workspace |
| 4194 | table.insert(cuts, hole) |
| 4195 | local angBoxes = {} |
| 4196 | do |
| 4197 | local edgeDir = 1*rightV + 0*upV |
| 4198 | local edgePerp = 0*rightV + 1*upV |
| 4199 | local cut = Instance.new("Part") |
| 4200 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 4201 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.44 * edgePerp, edgeDir, normalV) |
| 4202 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4203 | cut.Material = Enum.Material.Glacier |
| 4204 | cut.MaterialVariant = "2022 Stud" |
| 4205 | cut.Anchored = true; cut.Parent = workspace |
| 4206 | table.insert(angBoxes, cut) |
| 4207 | end |
| 4208 | do |
| 4209 | local edgeDir = -1*rightV + 0*upV |
| 4210 | local edgePerp = 0*rightV + -1*upV |
| 4211 | local cut = Instance.new("Part") |
| 4212 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 4213 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.44 * edgePerp, edgeDir, normalV) |
| 4214 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4215 | cut.Material = Enum.Material.Glacier |
| 4216 | cut.MaterialVariant = "2022 Stud" |
| 4217 | cut.Anchored = true; cut.Parent = workspace |
| 4218 | table.insert(angBoxes, cut) |
| 4219 | end |
| 4220 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4221 | if #cuts > 0 then |
| 4222 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4223 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4224 | if ok and result then |
| 4225 | cyl:Destroy() |
| 4226 | result.Name = "Coil_5_0_A"; result.Anchored = true; result.Parent = model |
| 4227 | else |
| 4228 | cyl.Name = "Coil_5_0_A"; cyl.Parent = model |
| 4229 | end |
| 4230 | else |
| 4231 | cyl.Name = "Coil_5_0_A"; cyl.Parent = model |
| 4232 | end |
| 4233 | end |
| 4234 | do |
| 4235 | local rightV = Vector3.new(1,0,0).Unit |
| 4236 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4237 | local normalV = upV:Cross(rightV) |
| 4238 | local pos = Vector3.new(0, 1.84, 0) |
| 4239 | local cyl = Instance.new("Part") |
| 4240 | cyl.Shape = Enum.PartType.Cylinder |
| 4241 | cyl.Size = Vector3.new(0.8, 9.44, 9.44) |
| 4242 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4243 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4244 | cyl.Material = Enum.Material.Glacier |
| 4245 | cyl.MaterialVariant = "2022 Stud" |
| 4246 | cyl.Anchored = true; cyl.Parent = workspace |
| 4247 | local cuts = {} |
| 4248 | local hole = Instance.new("Part") |
| 4249 | hole.Shape = Enum.PartType.Cylinder |
| 4250 | hole.Size = Vector3.new(1, 7.84, 7.84) |
| 4251 | hole.CFrame = cyl.CFrame |
| 4252 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4253 | hole.Material = Enum.Material.Glacier |
| 4254 | hole.MaterialVariant = "2022 Stud" |
| 4255 | hole.Anchored = true; hole.Parent = workspace |
| 4256 | table.insert(cuts, hole) |
| 4257 | local angBoxes = {} |
| 4258 | do |
| 4259 | local edgeDir = -1*rightV + 0*upV |
| 4260 | local edgePerp = 0*rightV + -1*upV |
| 4261 | local cut = Instance.new("Part") |
| 4262 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 4263 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.44 * edgePerp, edgeDir, normalV) |
| 4264 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4265 | cut.Material = Enum.Material.Glacier |
| 4266 | cut.MaterialVariant = "2022 Stud" |
| 4267 | cut.Anchored = true; cut.Parent = workspace |
| 4268 | table.insert(angBoxes, cut) |
| 4269 | end |
| 4270 | do |
| 4271 | local edgeDir = 1*rightV + 0*upV |
| 4272 | local edgePerp = 0*rightV + 1*upV |
| 4273 | local cut = Instance.new("Part") |
| 4274 | cut.Size = Vector3.new(18.88, 1, 18.88) |
| 4275 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.44 * edgePerp, edgeDir, normalV) |
| 4276 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4277 | cut.Material = Enum.Material.Glacier |
| 4278 | cut.MaterialVariant = "2022 Stud" |
| 4279 | cut.Anchored = true; cut.Parent = workspace |
| 4280 | table.insert(angBoxes, cut) |
| 4281 | end |
| 4282 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4283 | if #cuts > 0 then |
| 4284 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4285 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4286 | if ok and result then |
| 4287 | cyl:Destroy() |
| 4288 | result.Name = "Coil_5_0_B"; result.Anchored = true; result.Parent = model |
| 4289 | else |
| 4290 | cyl.Name = "Coil_5_0_B"; cyl.Parent = model |
| 4291 | end |
| 4292 | else |
| 4293 | cyl.Name = "Coil_5_0_B"; cyl.Parent = model |
| 4294 | end |
| 4295 | end |
| 4296 | do |
| 4297 | local rightV = Vector3.new(1,0,0).Unit |
| 4298 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4299 | local normalV = upV:Cross(rightV) |
| 4300 | local pos = Vector3.new(0, 1.88, 0.04) |
| 4301 | local cyl = Instance.new("Part") |
| 4302 | cyl.Shape = Enum.PartType.Cylinder |
| 4303 | cyl.Size = Vector3.new(0.8, 11.4, 11.4) |
| 4304 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4305 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4306 | cyl.Material = Enum.Material.Glacier |
| 4307 | cyl.MaterialVariant = "2022 Stud" |
| 4308 | cyl.Anchored = true; cyl.Parent = workspace |
| 4309 | local cuts = {} |
| 4310 | local hole = Instance.new("Part") |
| 4311 | hole.Shape = Enum.PartType.Cylinder |
| 4312 | hole.Size = Vector3.new(1, 9.8, 9.8) |
| 4313 | hole.CFrame = cyl.CFrame |
| 4314 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4315 | hole.Material = Enum.Material.Glacier |
| 4316 | hole.MaterialVariant = "2022 Stud" |
| 4317 | hole.Anchored = true; hole.Parent = workspace |
| 4318 | table.insert(cuts, hole) |
| 4319 | local angBoxes = {} |
| 4320 | do |
| 4321 | local edgeDir = 1*rightV + 0*upV |
| 4322 | local edgePerp = 0*rightV + 1*upV |
| 4323 | local cut = Instance.new("Part") |
| 4324 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 4325 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.4 * edgePerp, edgeDir, normalV) |
| 4326 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4327 | cut.Material = Enum.Material.Glacier |
| 4328 | cut.MaterialVariant = "2022 Stud" |
| 4329 | cut.Anchored = true; cut.Parent = workspace |
| 4330 | table.insert(angBoxes, cut) |
| 4331 | end |
| 4332 | do |
| 4333 | local edgeDir = -1*rightV + 0*upV |
| 4334 | local edgePerp = 0*rightV + -1*upV |
| 4335 | local cut = Instance.new("Part") |
| 4336 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 4337 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.4 * edgePerp, edgeDir, normalV) |
| 4338 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4339 | cut.Material = Enum.Material.Glacier |
| 4340 | cut.MaterialVariant = "2022 Stud" |
| 4341 | cut.Anchored = true; cut.Parent = workspace |
| 4342 | table.insert(angBoxes, cut) |
| 4343 | end |
| 4344 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4345 | if #cuts > 0 then |
| 4346 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4347 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4348 | if ok and result then |
| 4349 | cyl:Destroy() |
| 4350 | result.Name = "Coil_5_1_A"; result.Anchored = true; result.Parent = model |
| 4351 | else |
| 4352 | cyl.Name = "Coil_5_1_A"; cyl.Parent = model |
| 4353 | end |
| 4354 | else |
| 4355 | cyl.Name = "Coil_5_1_A"; cyl.Parent = model |
| 4356 | end |
| 4357 | end |
| 4358 | do |
| 4359 | local rightV = Vector3.new(1,0,0).Unit |
| 4360 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4361 | local normalV = upV:Cross(rightV) |
| 4362 | local pos = Vector3.new(0, 1.8, 0) |
| 4363 | local cyl = Instance.new("Part") |
| 4364 | cyl.Shape = Enum.PartType.Cylinder |
| 4365 | cyl.Size = Vector3.new(0.8, 11.4, 11.4) |
| 4366 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4367 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4368 | cyl.Material = Enum.Material.Glacier |
| 4369 | cyl.MaterialVariant = "2022 Stud" |
| 4370 | cyl.Anchored = true; cyl.Parent = workspace |
| 4371 | local cuts = {} |
| 4372 | local hole = Instance.new("Part") |
| 4373 | hole.Shape = Enum.PartType.Cylinder |
| 4374 | hole.Size = Vector3.new(1, 9.8, 9.8) |
| 4375 | hole.CFrame = cyl.CFrame |
| 4376 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4377 | hole.Material = Enum.Material.Glacier |
| 4378 | hole.MaterialVariant = "2022 Stud" |
| 4379 | hole.Anchored = true; hole.Parent = workspace |
| 4380 | table.insert(cuts, hole) |
| 4381 | local angBoxes = {} |
| 4382 | do |
| 4383 | local edgeDir = -1*rightV + 0*upV |
| 4384 | local edgePerp = 0*rightV + -1*upV |
| 4385 | local cut = Instance.new("Part") |
| 4386 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 4387 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.4 * edgePerp, edgeDir, normalV) |
| 4388 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4389 | cut.Material = Enum.Material.Glacier |
| 4390 | cut.MaterialVariant = "2022 Stud" |
| 4391 | cut.Anchored = true; cut.Parent = workspace |
| 4392 | table.insert(angBoxes, cut) |
| 4393 | end |
| 4394 | do |
| 4395 | local edgeDir = 1*rightV + 0*upV |
| 4396 | local edgePerp = 0*rightV + 1*upV |
| 4397 | local cut = Instance.new("Part") |
| 4398 | cut.Size = Vector3.new(22.8, 1, 22.8) |
| 4399 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.4 * edgePerp, edgeDir, normalV) |
| 4400 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4401 | cut.Material = Enum.Material.Glacier |
| 4402 | cut.MaterialVariant = "2022 Stud" |
| 4403 | cut.Anchored = true; cut.Parent = workspace |
| 4404 | table.insert(angBoxes, cut) |
| 4405 | end |
| 4406 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4407 | if #cuts > 0 then |
| 4408 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4409 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4410 | if ok and result then |
| 4411 | cyl:Destroy() |
| 4412 | result.Name = "Coil_5_1_B"; result.Anchored = true; result.Parent = model |
| 4413 | else |
| 4414 | cyl.Name = "Coil_5_1_B"; cyl.Parent = model |
| 4415 | end |
| 4416 | else |
| 4417 | cyl.Name = "Coil_5_1_B"; cyl.Parent = model |
| 4418 | end |
| 4419 | end |
| 4420 | do |
| 4421 | local rightV = Vector3.new(1,0,0).Unit |
| 4422 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4423 | local normalV = upV:Cross(rightV) |
| 4424 | local pos = Vector3.new(0, 1.8, 0.12) |
| 4425 | local cyl = Instance.new("Part") |
| 4426 | cyl.Shape = Enum.PartType.Cylinder |
| 4427 | cyl.Size = Vector3.new(0.8, 13.36, 13.36) |
| 4428 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4429 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4430 | cyl.Material = Enum.Material.Glacier |
| 4431 | cyl.MaterialVariant = "2022 Stud" |
| 4432 | cyl.Anchored = true; cyl.Parent = workspace |
| 4433 | local cuts = {} |
| 4434 | local hole = Instance.new("Part") |
| 4435 | hole.Shape = Enum.PartType.Cylinder |
| 4436 | hole.Size = Vector3.new(1, 11.76, 11.76) |
| 4437 | hole.CFrame = cyl.CFrame |
| 4438 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4439 | hole.Material = Enum.Material.Glacier |
| 4440 | hole.MaterialVariant = "2022 Stud" |
| 4441 | hole.Anchored = true; hole.Parent = workspace |
| 4442 | table.insert(cuts, hole) |
| 4443 | local angBoxes = {} |
| 4444 | do |
| 4445 | local edgeDir = 1*rightV + 0*upV |
| 4446 | local edgePerp = 0*rightV + 1*upV |
| 4447 | local cut = Instance.new("Part") |
| 4448 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 4449 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.36 * edgePerp, edgeDir, normalV) |
| 4450 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4451 | cut.Material = Enum.Material.Glacier |
| 4452 | cut.MaterialVariant = "2022 Stud" |
| 4453 | cut.Anchored = true; cut.Parent = workspace |
| 4454 | table.insert(angBoxes, cut) |
| 4455 | end |
| 4456 | do |
| 4457 | local edgeDir = -1*rightV + 0*upV |
| 4458 | local edgePerp = 0*rightV + -1*upV |
| 4459 | local cut = Instance.new("Part") |
| 4460 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 4461 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.36 * edgePerp, edgeDir, normalV) |
| 4462 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4463 | cut.Material = Enum.Material.Glacier |
| 4464 | cut.MaterialVariant = "2022 Stud" |
| 4465 | cut.Anchored = true; cut.Parent = workspace |
| 4466 | table.insert(angBoxes, cut) |
| 4467 | end |
| 4468 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4469 | if #cuts > 0 then |
| 4470 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4471 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4472 | if ok and result then |
| 4473 | cyl:Destroy() |
| 4474 | result.Name = "Coil_5_2_A"; result.Anchored = true; result.Parent = model |
| 4475 | else |
| 4476 | cyl.Name = "Coil_5_2_A"; cyl.Parent = model |
| 4477 | end |
| 4478 | else |
| 4479 | cyl.Name = "Coil_5_2_A"; cyl.Parent = model |
| 4480 | end |
| 4481 | end |
| 4482 | do |
| 4483 | local rightV = Vector3.new(1,0,0).Unit |
| 4484 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4485 | local normalV = upV:Cross(rightV) |
| 4486 | local pos = Vector3.new(0, 1.76, 0.08) |
| 4487 | local cyl = Instance.new("Part") |
| 4488 | cyl.Shape = Enum.PartType.Cylinder |
| 4489 | cyl.Size = Vector3.new(0.8, 13.36, 13.36) |
| 4490 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4491 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4492 | cyl.Material = Enum.Material.Glacier |
| 4493 | cyl.MaterialVariant = "2022 Stud" |
| 4494 | cyl.Anchored = true; cyl.Parent = workspace |
| 4495 | local cuts = {} |
| 4496 | local hole = Instance.new("Part") |
| 4497 | hole.Shape = Enum.PartType.Cylinder |
| 4498 | hole.Size = Vector3.new(1, 11.76, 11.76) |
| 4499 | hole.CFrame = cyl.CFrame |
| 4500 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4501 | hole.Material = Enum.Material.Glacier |
| 4502 | hole.MaterialVariant = "2022 Stud" |
| 4503 | hole.Anchored = true; hole.Parent = workspace |
| 4504 | table.insert(cuts, hole) |
| 4505 | local angBoxes = {} |
| 4506 | do |
| 4507 | local edgeDir = -1*rightV + 0*upV |
| 4508 | local edgePerp = 0*rightV + -1*upV |
| 4509 | local cut = Instance.new("Part") |
| 4510 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 4511 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.36 * edgePerp, edgeDir, normalV) |
| 4512 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4513 | cut.Material = Enum.Material.Glacier |
| 4514 | cut.MaterialVariant = "2022 Stud" |
| 4515 | cut.Anchored = true; cut.Parent = workspace |
| 4516 | table.insert(angBoxes, cut) |
| 4517 | end |
| 4518 | do |
| 4519 | local edgeDir = 1*rightV + 0*upV |
| 4520 | local edgePerp = 0*rightV + 1*upV |
| 4521 | local cut = Instance.new("Part") |
| 4522 | cut.Size = Vector3.new(26.72, 1, 26.72) |
| 4523 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.36 * edgePerp, edgeDir, normalV) |
| 4524 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4525 | cut.Material = Enum.Material.Glacier |
| 4526 | cut.MaterialVariant = "2022 Stud" |
| 4527 | cut.Anchored = true; cut.Parent = workspace |
| 4528 | table.insert(angBoxes, cut) |
| 4529 | end |
| 4530 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4531 | if #cuts > 0 then |
| 4532 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4533 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4534 | if ok and result then |
| 4535 | cyl:Destroy() |
| 4536 | result.Name = "Coil_5_2_B"; result.Anchored = true; result.Parent = model |
| 4537 | else |
| 4538 | cyl.Name = "Coil_5_2_B"; cyl.Parent = model |
| 4539 | end |
| 4540 | else |
| 4541 | cyl.Name = "Coil_5_2_B"; cyl.Parent = model |
| 4542 | end |
| 4543 | end |
| 4544 | do |
| 4545 | local rightV = Vector3.new(1,0,0).Unit |
| 4546 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4547 | local normalV = upV:Cross(rightV) |
| 4548 | local pos = Vector3.new(0, 1.8, 0.04) |
| 4549 | local cyl = Instance.new("Part") |
| 4550 | cyl.Shape = Enum.PartType.Cylinder |
| 4551 | cyl.Size = Vector3.new(0.8, 14.92, 14.92) |
| 4552 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4553 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4554 | cyl.Material = Enum.Material.Glacier |
| 4555 | cyl.MaterialVariant = "2022 Stud" |
| 4556 | cyl.Anchored = true; cyl.Parent = workspace |
| 4557 | local cuts = {} |
| 4558 | local hole = Instance.new("Part") |
| 4559 | hole.Shape = Enum.PartType.Cylinder |
| 4560 | hole.Size = Vector3.new(1, 13.32, 13.32) |
| 4561 | hole.CFrame = cyl.CFrame |
| 4562 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4563 | hole.Material = Enum.Material.Glacier |
| 4564 | hole.MaterialVariant = "2022 Stud" |
| 4565 | hole.Anchored = true; hole.Parent = workspace |
| 4566 | table.insert(cuts, hole) |
| 4567 | local angBoxes = {} |
| 4568 | do |
| 4569 | local edgeDir = 1*rightV + 0*upV |
| 4570 | local edgePerp = 0*rightV + 1*upV |
| 4571 | local cut = Instance.new("Part") |
| 4572 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 4573 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 14.92 * edgePerp, edgeDir, normalV) |
| 4574 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4575 | cut.Material = Enum.Material.Glacier |
| 4576 | cut.MaterialVariant = "2022 Stud" |
| 4577 | cut.Anchored = true; cut.Parent = workspace |
| 4578 | table.insert(angBoxes, cut) |
| 4579 | end |
| 4580 | do |
| 4581 | local edgeDir = -1*rightV + 0*upV |
| 4582 | local edgePerp = 0*rightV + -1*upV |
| 4583 | local cut = Instance.new("Part") |
| 4584 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 4585 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 14.92 * edgePerp, edgeDir, normalV) |
| 4586 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4587 | cut.Material = Enum.Material.Glacier |
| 4588 | cut.MaterialVariant = "2022 Stud" |
| 4589 | cut.Anchored = true; cut.Parent = workspace |
| 4590 | table.insert(angBoxes, cut) |
| 4591 | end |
| 4592 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4593 | if #cuts > 0 then |
| 4594 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4595 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4596 | if ok and result then |
| 4597 | cyl:Destroy() |
| 4598 | result.Name = "Coil_5_3_A"; result.Anchored = true; result.Parent = model |
| 4599 | else |
| 4600 | cyl.Name = "Coil_5_3_A"; cyl.Parent = model |
| 4601 | end |
| 4602 | else |
| 4603 | cyl.Name = "Coil_5_3_A"; cyl.Parent = model |
| 4604 | end |
| 4605 | end |
| 4606 | do |
| 4607 | local rightV = Vector3.new(1,0,0).Unit |
| 4608 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4609 | local normalV = upV:Cross(rightV) |
| 4610 | local pos = Vector3.new(0, 1.84, 0) |
| 4611 | local cyl = Instance.new("Part") |
| 4612 | cyl.Shape = Enum.PartType.Cylinder |
| 4613 | cyl.Size = Vector3.new(0.8, 14.92, 14.92) |
| 4614 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4615 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4616 | cyl.Material = Enum.Material.Glacier |
| 4617 | cyl.MaterialVariant = "2022 Stud" |
| 4618 | cyl.Anchored = true; cyl.Parent = workspace |
| 4619 | local cuts = {} |
| 4620 | local hole = Instance.new("Part") |
| 4621 | hole.Shape = Enum.PartType.Cylinder |
| 4622 | hole.Size = Vector3.new(1, 13.32, 13.32) |
| 4623 | hole.CFrame = cyl.CFrame |
| 4624 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4625 | hole.Material = Enum.Material.Glacier |
| 4626 | hole.MaterialVariant = "2022 Stud" |
| 4627 | hole.Anchored = true; hole.Parent = workspace |
| 4628 | table.insert(cuts, hole) |
| 4629 | local angBoxes = {} |
| 4630 | do |
| 4631 | local edgeDir = -1*rightV + 0*upV |
| 4632 | local edgePerp = 0*rightV + -1*upV |
| 4633 | local cut = Instance.new("Part") |
| 4634 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 4635 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 14.92 * edgePerp, edgeDir, normalV) |
| 4636 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4637 | cut.Material = Enum.Material.Glacier |
| 4638 | cut.MaterialVariant = "2022 Stud" |
| 4639 | cut.Anchored = true; cut.Parent = workspace |
| 4640 | table.insert(angBoxes, cut) |
| 4641 | end |
| 4642 | do |
| 4643 | local edgeDir = 1*rightV + 0*upV |
| 4644 | local edgePerp = 0*rightV + 1*upV |
| 4645 | local cut = Instance.new("Part") |
| 4646 | cut.Size = Vector3.new(29.84, 1, 29.84) |
| 4647 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 14.92 * edgePerp, edgeDir, normalV) |
| 4648 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4649 | cut.Material = Enum.Material.Glacier |
| 4650 | cut.MaterialVariant = "2022 Stud" |
| 4651 | cut.Anchored = true; cut.Parent = workspace |
| 4652 | table.insert(angBoxes, cut) |
| 4653 | end |
| 4654 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4655 | if #cuts > 0 then |
| 4656 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4657 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4658 | if ok and result then |
| 4659 | cyl:Destroy() |
| 4660 | result.Name = "Coil_5_3_B"; result.Anchored = true; result.Parent = model |
| 4661 | else |
| 4662 | cyl.Name = "Coil_5_3_B"; cyl.Parent = model |
| 4663 | end |
| 4664 | else |
| 4665 | cyl.Name = "Coil_5_3_B"; cyl.Parent = model |
| 4666 | end |
| 4667 | end |
| 4668 | do |
| 4669 | local rightV = Vector3.new(1,0,0).Unit |
| 4670 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4671 | local normalV = upV:Cross(rightV) |
| 4672 | local pos = Vector3.new(0, 1.8, 0.12) |
| 4673 | local cyl = Instance.new("Part") |
| 4674 | cyl.Shape = Enum.PartType.Cylinder |
| 4675 | cyl.Size = Vector3.new(0.8, 16.88, 16.88) |
| 4676 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4677 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4678 | cyl.Material = Enum.Material.Glacier |
| 4679 | cyl.MaterialVariant = "2022 Stud" |
| 4680 | cyl.Anchored = true; cyl.Parent = workspace |
| 4681 | local cuts = {} |
| 4682 | local hole = Instance.new("Part") |
| 4683 | hole.Shape = Enum.PartType.Cylinder |
| 4684 | hole.Size = Vector3.new(1, 15.28, 15.28) |
| 4685 | hole.CFrame = cyl.CFrame |
| 4686 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4687 | hole.Material = Enum.Material.Glacier |
| 4688 | hole.MaterialVariant = "2022 Stud" |
| 4689 | hole.Anchored = true; hole.Parent = workspace |
| 4690 | table.insert(cuts, hole) |
| 4691 | local angBoxes = {} |
| 4692 | do |
| 4693 | local edgeDir = 1*rightV + 0*upV |
| 4694 | local edgePerp = 0*rightV + 1*upV |
| 4695 | local cut = Instance.new("Part") |
| 4696 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 4697 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.88 * edgePerp, edgeDir, normalV) |
| 4698 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4699 | cut.Material = Enum.Material.Glacier |
| 4700 | cut.MaterialVariant = "2022 Stud" |
| 4701 | cut.Anchored = true; cut.Parent = workspace |
| 4702 | table.insert(angBoxes, cut) |
| 4703 | end |
| 4704 | do |
| 4705 | local edgeDir = -1*rightV + 0*upV |
| 4706 | local edgePerp = 0*rightV + -1*upV |
| 4707 | local cut = Instance.new("Part") |
| 4708 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 4709 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.88 * edgePerp, edgeDir, normalV) |
| 4710 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4711 | cut.Material = Enum.Material.Glacier |
| 4712 | cut.MaterialVariant = "2022 Stud" |
| 4713 | cut.Anchored = true; cut.Parent = workspace |
| 4714 | table.insert(angBoxes, cut) |
| 4715 | end |
| 4716 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4717 | if #cuts > 0 then |
| 4718 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4719 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4720 | if ok and result then |
| 4721 | cyl:Destroy() |
| 4722 | result.Name = "Coil_5_4_A"; result.Anchored = true; result.Parent = model |
| 4723 | else |
| 4724 | cyl.Name = "Coil_5_4_A"; cyl.Parent = model |
| 4725 | end |
| 4726 | else |
| 4727 | cyl.Name = "Coil_5_4_A"; cyl.Parent = model |
| 4728 | end |
| 4729 | end |
| 4730 | do |
| 4731 | local rightV = Vector3.new(1,0,0).Unit |
| 4732 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4733 | local normalV = upV:Cross(rightV) |
| 4734 | local pos = Vector3.new(0, 1.88, 0.08) |
| 4735 | local cyl = Instance.new("Part") |
| 4736 | cyl.Shape = Enum.PartType.Cylinder |
| 4737 | cyl.Size = Vector3.new(0.8, 16.88, 16.88) |
| 4738 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4739 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4740 | cyl.Material = Enum.Material.Glacier |
| 4741 | cyl.MaterialVariant = "2022 Stud" |
| 4742 | cyl.Anchored = true; cyl.Parent = workspace |
| 4743 | local cuts = {} |
| 4744 | local hole = Instance.new("Part") |
| 4745 | hole.Shape = Enum.PartType.Cylinder |
| 4746 | hole.Size = Vector3.new(1, 15.28, 15.28) |
| 4747 | hole.CFrame = cyl.CFrame |
| 4748 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4749 | hole.Material = Enum.Material.Glacier |
| 4750 | hole.MaterialVariant = "2022 Stud" |
| 4751 | hole.Anchored = true; hole.Parent = workspace |
| 4752 | table.insert(cuts, hole) |
| 4753 | local angBoxes = {} |
| 4754 | do |
| 4755 | local edgeDir = -1*rightV + 0*upV |
| 4756 | local edgePerp = 0*rightV + -1*upV |
| 4757 | local cut = Instance.new("Part") |
| 4758 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 4759 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.88 * edgePerp, edgeDir, normalV) |
| 4760 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4761 | cut.Material = Enum.Material.Glacier |
| 4762 | cut.MaterialVariant = "2022 Stud" |
| 4763 | cut.Anchored = true; cut.Parent = workspace |
| 4764 | table.insert(angBoxes, cut) |
| 4765 | end |
| 4766 | do |
| 4767 | local edgeDir = 1*rightV + 0*upV |
| 4768 | local edgePerp = 0*rightV + 1*upV |
| 4769 | local cut = Instance.new("Part") |
| 4770 | cut.Size = Vector3.new(33.76, 1, 33.76) |
| 4771 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.88 * edgePerp, edgeDir, normalV) |
| 4772 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4773 | cut.Material = Enum.Material.Glacier |
| 4774 | cut.MaterialVariant = "2022 Stud" |
| 4775 | cut.Anchored = true; cut.Parent = workspace |
| 4776 | table.insert(angBoxes, cut) |
| 4777 | end |
| 4778 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4779 | if #cuts > 0 then |
| 4780 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4781 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4782 | if ok and result then |
| 4783 | cyl:Destroy() |
| 4784 | result.Name = "Coil_5_4_B"; result.Anchored = true; result.Parent = model |
| 4785 | else |
| 4786 | cyl.Name = "Coil_5_4_B"; cyl.Parent = model |
| 4787 | end |
| 4788 | else |
| 4789 | cyl.Name = "Coil_5_4_B"; cyl.Parent = model |
| 4790 | end |
| 4791 | end |
| 4792 | do |
| 4793 | local rightV = Vector3.new(1,0,0).Unit |
| 4794 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4795 | local normalV = upV:Cross(rightV) |
| 4796 | local pos = Vector3.new(0, 1.76, 0.04) |
| 4797 | local cyl = Instance.new("Part") |
| 4798 | cyl.Shape = Enum.PartType.Cylinder |
| 4799 | cyl.Size = Vector3.new(0.8, 18.44, 18.44) |
| 4800 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4801 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4802 | cyl.Material = Enum.Material.Glacier |
| 4803 | cyl.MaterialVariant = "2022 Stud" |
| 4804 | cyl.Anchored = true; cyl.Parent = workspace |
| 4805 | local cuts = {} |
| 4806 | local hole = Instance.new("Part") |
| 4807 | hole.Shape = Enum.PartType.Cylinder |
| 4808 | hole.Size = Vector3.new(1, 16.84, 16.84) |
| 4809 | hole.CFrame = cyl.CFrame |
| 4810 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4811 | hole.Material = Enum.Material.Glacier |
| 4812 | hole.MaterialVariant = "2022 Stud" |
| 4813 | hole.Anchored = true; hole.Parent = workspace |
| 4814 | table.insert(cuts, hole) |
| 4815 | local angBoxes = {} |
| 4816 | do |
| 4817 | local edgeDir = 1*rightV + 0*upV |
| 4818 | local edgePerp = 0*rightV + 1*upV |
| 4819 | local cut = Instance.new("Part") |
| 4820 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 4821 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.44 * edgePerp, edgeDir, normalV) |
| 4822 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4823 | cut.Material = Enum.Material.Glacier |
| 4824 | cut.MaterialVariant = "2022 Stud" |
| 4825 | cut.Anchored = true; cut.Parent = workspace |
| 4826 | table.insert(angBoxes, cut) |
| 4827 | end |
| 4828 | do |
| 4829 | local edgeDir = -1*rightV + 0*upV |
| 4830 | local edgePerp = 0*rightV + -1*upV |
| 4831 | local cut = Instance.new("Part") |
| 4832 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 4833 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.44 * edgePerp, edgeDir, normalV) |
| 4834 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4835 | cut.Material = Enum.Material.Glacier |
| 4836 | cut.MaterialVariant = "2022 Stud" |
| 4837 | cut.Anchored = true; cut.Parent = workspace |
| 4838 | table.insert(angBoxes, cut) |
| 4839 | end |
| 4840 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4841 | if #cuts > 0 then |
| 4842 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4843 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4844 | if ok and result then |
| 4845 | cyl:Destroy() |
| 4846 | result.Name = "Coil_5_5_A"; result.Anchored = true; result.Parent = model |
| 4847 | else |
| 4848 | cyl.Name = "Coil_5_5_A"; cyl.Parent = model |
| 4849 | end |
| 4850 | else |
| 4851 | cyl.Name = "Coil_5_5_A"; cyl.Parent = model |
| 4852 | end |
| 4853 | end |
| 4854 | do |
| 4855 | local rightV = Vector3.new(1,0,0).Unit |
| 4856 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4857 | local normalV = upV:Cross(rightV) |
| 4858 | local pos = Vector3.new(0, 1.72, 0) |
| 4859 | local cyl = Instance.new("Part") |
| 4860 | cyl.Shape = Enum.PartType.Cylinder |
| 4861 | cyl.Size = Vector3.new(0.8, 18.44, 18.44) |
| 4862 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4863 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4864 | cyl.Material = Enum.Material.Glacier |
| 4865 | cyl.MaterialVariant = "2022 Stud" |
| 4866 | cyl.Anchored = true; cyl.Parent = workspace |
| 4867 | local cuts = {} |
| 4868 | local hole = Instance.new("Part") |
| 4869 | hole.Shape = Enum.PartType.Cylinder |
| 4870 | hole.Size = Vector3.new(1, 16.84, 16.84) |
| 4871 | hole.CFrame = cyl.CFrame |
| 4872 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4873 | hole.Material = Enum.Material.Glacier |
| 4874 | hole.MaterialVariant = "2022 Stud" |
| 4875 | hole.Anchored = true; hole.Parent = workspace |
| 4876 | table.insert(cuts, hole) |
| 4877 | local angBoxes = {} |
| 4878 | do |
| 4879 | local edgeDir = -1*rightV + 0*upV |
| 4880 | local edgePerp = 0*rightV + -1*upV |
| 4881 | local cut = Instance.new("Part") |
| 4882 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 4883 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.44 * edgePerp, edgeDir, normalV) |
| 4884 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4885 | cut.Material = Enum.Material.Glacier |
| 4886 | cut.MaterialVariant = "2022 Stud" |
| 4887 | cut.Anchored = true; cut.Parent = workspace |
| 4888 | table.insert(angBoxes, cut) |
| 4889 | end |
| 4890 | do |
| 4891 | local edgeDir = 1*rightV + 0*upV |
| 4892 | local edgePerp = 0*rightV + 1*upV |
| 4893 | local cut = Instance.new("Part") |
| 4894 | cut.Size = Vector3.new(36.88, 1, 36.88) |
| 4895 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.44 * edgePerp, edgeDir, normalV) |
| 4896 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4897 | cut.Material = Enum.Material.Glacier |
| 4898 | cut.MaterialVariant = "2022 Stud" |
| 4899 | cut.Anchored = true; cut.Parent = workspace |
| 4900 | table.insert(angBoxes, cut) |
| 4901 | end |
| 4902 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4903 | if #cuts > 0 then |
| 4904 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4905 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4906 | if ok and result then |
| 4907 | cyl:Destroy() |
| 4908 | result.Name = "Coil_5_5_B"; result.Anchored = true; result.Parent = model |
| 4909 | else |
| 4910 | cyl.Name = "Coil_5_5_B"; cyl.Parent = model |
| 4911 | end |
| 4912 | else |
| 4913 | cyl.Name = "Coil_5_5_B"; cyl.Parent = model |
| 4914 | end |
| 4915 | end |
| 4916 | do |
| 4917 | local rightV = Vector3.new(1,0,0).Unit |
| 4918 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4919 | local normalV = upV:Cross(rightV) |
| 4920 | local pos = Vector3.new(0, 2.74, 0.12) |
| 4921 | local cyl = Instance.new("Part") |
| 4922 | cyl.Shape = Enum.PartType.Cylinder |
| 4923 | cyl.Size = Vector3.new(0.8, 9.68, 9.68) |
| 4924 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4925 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4926 | cyl.Material = Enum.Material.Glacier |
| 4927 | cyl.MaterialVariant = "2022 Stud" |
| 4928 | cyl.Anchored = true; cyl.Parent = workspace |
| 4929 | local cuts = {} |
| 4930 | local hole = Instance.new("Part") |
| 4931 | hole.Shape = Enum.PartType.Cylinder |
| 4932 | hole.Size = Vector3.new(1, 8.08, 8.08) |
| 4933 | hole.CFrame = cyl.CFrame |
| 4934 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4935 | hole.Material = Enum.Material.Glacier |
| 4936 | hole.MaterialVariant = "2022 Stud" |
| 4937 | hole.Anchored = true; hole.Parent = workspace |
| 4938 | table.insert(cuts, hole) |
| 4939 | local angBoxes = {} |
| 4940 | do |
| 4941 | local edgeDir = 1*rightV + 0*upV |
| 4942 | local edgePerp = 0*rightV + 1*upV |
| 4943 | local cut = Instance.new("Part") |
| 4944 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 4945 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.68 * edgePerp, edgeDir, normalV) |
| 4946 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4947 | cut.Material = Enum.Material.Glacier |
| 4948 | cut.MaterialVariant = "2022 Stud" |
| 4949 | cut.Anchored = true; cut.Parent = workspace |
| 4950 | table.insert(angBoxes, cut) |
| 4951 | end |
| 4952 | do |
| 4953 | local edgeDir = -1*rightV + 0*upV |
| 4954 | local edgePerp = 0*rightV + -1*upV |
| 4955 | local cut = Instance.new("Part") |
| 4956 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 4957 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.68 * edgePerp, edgeDir, normalV) |
| 4958 | cut.BrickColor = BrickColor.new("Bright orange") |
| 4959 | cut.Material = Enum.Material.Glacier |
| 4960 | cut.MaterialVariant = "2022 Stud" |
| 4961 | cut.Anchored = true; cut.Parent = workspace |
| 4962 | table.insert(angBoxes, cut) |
| 4963 | end |
| 4964 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 4965 | if #cuts > 0 then |
| 4966 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 4967 | for _, c in ipairs(cuts) do c:Destroy() end |
| 4968 | if ok and result then |
| 4969 | cyl:Destroy() |
| 4970 | result.Name = "Coil_6_0_A"; result.Anchored = true; result.Parent = model |
| 4971 | else |
| 4972 | cyl.Name = "Coil_6_0_A"; cyl.Parent = model |
| 4973 | end |
| 4974 | else |
| 4975 | cyl.Name = "Coil_6_0_A"; cyl.Parent = model |
| 4976 | end |
| 4977 | end |
| 4978 | do |
| 4979 | local rightV = Vector3.new(1,0,0).Unit |
| 4980 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 4981 | local normalV = upV:Cross(rightV) |
| 4982 | local pos = Vector3.new(0, 2.66, 0.08) |
| 4983 | local cyl = Instance.new("Part") |
| 4984 | cyl.Shape = Enum.PartType.Cylinder |
| 4985 | cyl.Size = Vector3.new(0.8, 9.68, 9.68) |
| 4986 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 4987 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 4988 | cyl.Material = Enum.Material.Glacier |
| 4989 | cyl.MaterialVariant = "2022 Stud" |
| 4990 | cyl.Anchored = true; cyl.Parent = workspace |
| 4991 | local cuts = {} |
| 4992 | local hole = Instance.new("Part") |
| 4993 | hole.Shape = Enum.PartType.Cylinder |
| 4994 | hole.Size = Vector3.new(1, 8.08, 8.08) |
| 4995 | hole.CFrame = cyl.CFrame |
| 4996 | hole.BrickColor = BrickColor.new("Bright orange") |
| 4997 | hole.Material = Enum.Material.Glacier |
| 4998 | hole.MaterialVariant = "2022 Stud" |
| 4999 | hole.Anchored = true; hole.Parent = workspace |
| 5000 | table.insert(cuts, hole) |
| 5001 | local angBoxes = {} |
| 5002 | do |
| 5003 | local edgeDir = -1*rightV + 0*upV |
| 5004 | local edgePerp = 0*rightV + -1*upV |
| 5005 | local cut = Instance.new("Part") |
| 5006 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 5007 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.68 * edgePerp, edgeDir, normalV) |
| 5008 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5009 | cut.Material = Enum.Material.Glacier |
| 5010 | cut.MaterialVariant = "2022 Stud" |
| 5011 | cut.Anchored = true; cut.Parent = workspace |
| 5012 | table.insert(angBoxes, cut) |
| 5013 | end |
| 5014 | do |
| 5015 | local edgeDir = 1*rightV + 0*upV |
| 5016 | local edgePerp = 0*rightV + 1*upV |
| 5017 | local cut = Instance.new("Part") |
| 5018 | cut.Size = Vector3.new(19.36, 1, 19.36) |
| 5019 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.68 * edgePerp, edgeDir, normalV) |
| 5020 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5021 | cut.Material = Enum.Material.Glacier |
| 5022 | cut.MaterialVariant = "2022 Stud" |
| 5023 | cut.Anchored = true; cut.Parent = workspace |
| 5024 | table.insert(angBoxes, cut) |
| 5025 | end |
| 5026 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5027 | if #cuts > 0 then |
| 5028 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5029 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5030 | if ok and result then |
| 5031 | cyl:Destroy() |
| 5032 | result.Name = "Coil_6_0_B"; result.Anchored = true; result.Parent = model |
| 5033 | else |
| 5034 | cyl.Name = "Coil_6_0_B"; cyl.Parent = model |
| 5035 | end |
| 5036 | else |
| 5037 | cyl.Name = "Coil_6_0_B"; cyl.Parent = model |
| 5038 | end |
| 5039 | end |
| 5040 | do |
| 5041 | local rightV = Vector3.new(1,0,0).Unit |
| 5042 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5043 | local normalV = upV:Cross(rightV) |
| 5044 | local pos = Vector3.new(0, 2.7, 0.04) |
| 5045 | local cyl = Instance.new("Part") |
| 5046 | cyl.Shape = Enum.PartType.Cylinder |
| 5047 | cyl.Size = Vector3.new(0.8, 11.24, 11.24) |
| 5048 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5049 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5050 | cyl.Material = Enum.Material.Glacier |
| 5051 | cyl.MaterialVariant = "2022 Stud" |
| 5052 | cyl.Anchored = true; cyl.Parent = workspace |
| 5053 | local cuts = {} |
| 5054 | local hole = Instance.new("Part") |
| 5055 | hole.Shape = Enum.PartType.Cylinder |
| 5056 | hole.Size = Vector3.new(1, 9.64, 9.64) |
| 5057 | hole.CFrame = cyl.CFrame |
| 5058 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5059 | hole.Material = Enum.Material.Glacier |
| 5060 | hole.MaterialVariant = "2022 Stud" |
| 5061 | hole.Anchored = true; hole.Parent = workspace |
| 5062 | table.insert(cuts, hole) |
| 5063 | local angBoxes = {} |
| 5064 | do |
| 5065 | local edgeDir = 1*rightV + 0*upV |
| 5066 | local edgePerp = 0*rightV + 1*upV |
| 5067 | local cut = Instance.new("Part") |
| 5068 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 5069 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.24 * edgePerp, edgeDir, normalV) |
| 5070 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5071 | cut.Material = Enum.Material.Glacier |
| 5072 | cut.MaterialVariant = "2022 Stud" |
| 5073 | cut.Anchored = true; cut.Parent = workspace |
| 5074 | table.insert(angBoxes, cut) |
| 5075 | end |
| 5076 | do |
| 5077 | local edgeDir = -1*rightV + 0*upV |
| 5078 | local edgePerp = 0*rightV + -1*upV |
| 5079 | local cut = Instance.new("Part") |
| 5080 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 5081 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.24 * edgePerp, edgeDir, normalV) |
| 5082 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5083 | cut.Material = Enum.Material.Glacier |
| 5084 | cut.MaterialVariant = "2022 Stud" |
| 5085 | cut.Anchored = true; cut.Parent = workspace |
| 5086 | table.insert(angBoxes, cut) |
| 5087 | end |
| 5088 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5089 | if #cuts > 0 then |
| 5090 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5091 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5092 | if ok and result then |
| 5093 | cyl:Destroy() |
| 5094 | result.Name = "Coil_6_1_A"; result.Anchored = true; result.Parent = model |
| 5095 | else |
| 5096 | cyl.Name = "Coil_6_1_A"; cyl.Parent = model |
| 5097 | end |
| 5098 | else |
| 5099 | cyl.Name = "Coil_6_1_A"; cyl.Parent = model |
| 5100 | end |
| 5101 | end |
| 5102 | do |
| 5103 | local rightV = Vector3.new(1,0,0).Unit |
| 5104 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5105 | local normalV = upV:Cross(rightV) |
| 5106 | local pos = Vector3.new(0, 2.7, 0) |
| 5107 | local cyl = Instance.new("Part") |
| 5108 | cyl.Shape = Enum.PartType.Cylinder |
| 5109 | cyl.Size = Vector3.new(0.8, 11.24, 11.24) |
| 5110 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5111 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5112 | cyl.Material = Enum.Material.Glacier |
| 5113 | cyl.MaterialVariant = "2022 Stud" |
| 5114 | cyl.Anchored = true; cyl.Parent = workspace |
| 5115 | local cuts = {} |
| 5116 | local hole = Instance.new("Part") |
| 5117 | hole.Shape = Enum.PartType.Cylinder |
| 5118 | hole.Size = Vector3.new(1, 9.64, 9.64) |
| 5119 | hole.CFrame = cyl.CFrame |
| 5120 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5121 | hole.Material = Enum.Material.Glacier |
| 5122 | hole.MaterialVariant = "2022 Stud" |
| 5123 | hole.Anchored = true; hole.Parent = workspace |
| 5124 | table.insert(cuts, hole) |
| 5125 | local angBoxes = {} |
| 5126 | do |
| 5127 | local edgeDir = -1*rightV + 0*upV |
| 5128 | local edgePerp = 0*rightV + -1*upV |
| 5129 | local cut = Instance.new("Part") |
| 5130 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 5131 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.24 * edgePerp, edgeDir, normalV) |
| 5132 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5133 | cut.Material = Enum.Material.Glacier |
| 5134 | cut.MaterialVariant = "2022 Stud" |
| 5135 | cut.Anchored = true; cut.Parent = workspace |
| 5136 | table.insert(angBoxes, cut) |
| 5137 | end |
| 5138 | do |
| 5139 | local edgeDir = 1*rightV + 0*upV |
| 5140 | local edgePerp = 0*rightV + 1*upV |
| 5141 | local cut = Instance.new("Part") |
| 5142 | cut.Size = Vector3.new(22.48, 1, 22.48) |
| 5143 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.24 * edgePerp, edgeDir, normalV) |
| 5144 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5145 | cut.Material = Enum.Material.Glacier |
| 5146 | cut.MaterialVariant = "2022 Stud" |
| 5147 | cut.Anchored = true; cut.Parent = workspace |
| 5148 | table.insert(angBoxes, cut) |
| 5149 | end |
| 5150 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5151 | if #cuts > 0 then |
| 5152 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5153 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5154 | if ok and result then |
| 5155 | cyl:Destroy() |
| 5156 | result.Name = "Coil_6_1_B"; result.Anchored = true; result.Parent = model |
| 5157 | else |
| 5158 | cyl.Name = "Coil_6_1_B"; cyl.Parent = model |
| 5159 | end |
| 5160 | else |
| 5161 | cyl.Name = "Coil_6_1_B"; cyl.Parent = model |
| 5162 | end |
| 5163 | end |
| 5164 | do |
| 5165 | local rightV = Vector3.new(1,0,0).Unit |
| 5166 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5167 | local normalV = upV:Cross(rightV) |
| 5168 | local pos = Vector3.new(0, 2.74, 0.04) |
| 5169 | local cyl = Instance.new("Part") |
| 5170 | cyl.Shape = Enum.PartType.Cylinder |
| 5171 | cyl.Size = Vector3.new(0.8, 13.2, 13.2) |
| 5172 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5173 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5174 | cyl.Material = Enum.Material.Glacier |
| 5175 | cyl.MaterialVariant = "2022 Stud" |
| 5176 | cyl.Anchored = true; cyl.Parent = workspace |
| 5177 | local cuts = {} |
| 5178 | local hole = Instance.new("Part") |
| 5179 | hole.Shape = Enum.PartType.Cylinder |
| 5180 | hole.Size = Vector3.new(1, 11.6, 11.6) |
| 5181 | hole.CFrame = cyl.CFrame |
| 5182 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5183 | hole.Material = Enum.Material.Glacier |
| 5184 | hole.MaterialVariant = "2022 Stud" |
| 5185 | hole.Anchored = true; hole.Parent = workspace |
| 5186 | table.insert(cuts, hole) |
| 5187 | local angBoxes = {} |
| 5188 | do |
| 5189 | local edgeDir = 1*rightV + 0*upV |
| 5190 | local edgePerp = 0*rightV + 1*upV |
| 5191 | local cut = Instance.new("Part") |
| 5192 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 5193 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.2 * edgePerp, edgeDir, normalV) |
| 5194 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5195 | cut.Material = Enum.Material.Glacier |
| 5196 | cut.MaterialVariant = "2022 Stud" |
| 5197 | cut.Anchored = true; cut.Parent = workspace |
| 5198 | table.insert(angBoxes, cut) |
| 5199 | end |
| 5200 | do |
| 5201 | local edgeDir = -1*rightV + 0*upV |
| 5202 | local edgePerp = 0*rightV + -1*upV |
| 5203 | local cut = Instance.new("Part") |
| 5204 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 5205 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.2 * edgePerp, edgeDir, normalV) |
| 5206 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5207 | cut.Material = Enum.Material.Glacier |
| 5208 | cut.MaterialVariant = "2022 Stud" |
| 5209 | cut.Anchored = true; cut.Parent = workspace |
| 5210 | table.insert(angBoxes, cut) |
| 5211 | end |
| 5212 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5213 | if #cuts > 0 then |
| 5214 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5215 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5216 | if ok and result then |
| 5217 | cyl:Destroy() |
| 5218 | result.Name = "Coil_6_2_A"; result.Anchored = true; result.Parent = model |
| 5219 | else |
| 5220 | cyl.Name = "Coil_6_2_A"; cyl.Parent = model |
| 5221 | end |
| 5222 | else |
| 5223 | cyl.Name = "Coil_6_2_A"; cyl.Parent = model |
| 5224 | end |
| 5225 | end |
| 5226 | do |
| 5227 | local rightV = Vector3.new(1,0,0).Unit |
| 5228 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5229 | local normalV = upV:Cross(rightV) |
| 5230 | local pos = Vector3.new(0, 2.7, 0) |
| 5231 | local cyl = Instance.new("Part") |
| 5232 | cyl.Shape = Enum.PartType.Cylinder |
| 5233 | cyl.Size = Vector3.new(0.8, 13.2, 13.2) |
| 5234 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5235 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5236 | cyl.Material = Enum.Material.Glacier |
| 5237 | cyl.MaterialVariant = "2022 Stud" |
| 5238 | cyl.Anchored = true; cyl.Parent = workspace |
| 5239 | local cuts = {} |
| 5240 | local hole = Instance.new("Part") |
| 5241 | hole.Shape = Enum.PartType.Cylinder |
| 5242 | hole.Size = Vector3.new(1, 11.6, 11.6) |
| 5243 | hole.CFrame = cyl.CFrame |
| 5244 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5245 | hole.Material = Enum.Material.Glacier |
| 5246 | hole.MaterialVariant = "2022 Stud" |
| 5247 | hole.Anchored = true; hole.Parent = workspace |
| 5248 | table.insert(cuts, hole) |
| 5249 | local angBoxes = {} |
| 5250 | do |
| 5251 | local edgeDir = -1*rightV + 0*upV |
| 5252 | local edgePerp = 0*rightV + -1*upV |
| 5253 | local cut = Instance.new("Part") |
| 5254 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 5255 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13.2 * edgePerp, edgeDir, normalV) |
| 5256 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5257 | cut.Material = Enum.Material.Glacier |
| 5258 | cut.MaterialVariant = "2022 Stud" |
| 5259 | cut.Anchored = true; cut.Parent = workspace |
| 5260 | table.insert(angBoxes, cut) |
| 5261 | end |
| 5262 | do |
| 5263 | local edgeDir = 1*rightV + 0*upV |
| 5264 | local edgePerp = 0*rightV + 1*upV |
| 5265 | local cut = Instance.new("Part") |
| 5266 | cut.Size = Vector3.new(26.4, 1, 26.4) |
| 5267 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13.2 * edgePerp, edgeDir, normalV) |
| 5268 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5269 | cut.Material = Enum.Material.Glacier |
| 5270 | cut.MaterialVariant = "2022 Stud" |
| 5271 | cut.Anchored = true; cut.Parent = workspace |
| 5272 | table.insert(angBoxes, cut) |
| 5273 | end |
| 5274 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5275 | if #cuts > 0 then |
| 5276 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5277 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5278 | if ok and result then |
| 5279 | cyl:Destroy() |
| 5280 | result.Name = "Coil_6_2_B"; result.Anchored = true; result.Parent = model |
| 5281 | else |
| 5282 | cyl.Name = "Coil_6_2_B"; cyl.Parent = model |
| 5283 | end |
| 5284 | else |
| 5285 | cyl.Name = "Coil_6_2_B"; cyl.Parent = model |
| 5286 | end |
| 5287 | end |
| 5288 | do |
| 5289 | local rightV = Vector3.new(1,0,0).Unit |
| 5290 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5291 | local normalV = upV:Cross(rightV) |
| 5292 | local pos = Vector3.new(0, 2.74, 0.12) |
| 5293 | local cyl = Instance.new("Part") |
| 5294 | cyl.Shape = Enum.PartType.Cylinder |
| 5295 | cyl.Size = Vector3.new(0.8, 15.16, 15.16) |
| 5296 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5297 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5298 | cyl.Material = Enum.Material.Glacier |
| 5299 | cyl.MaterialVariant = "2022 Stud" |
| 5300 | cyl.Anchored = true; cyl.Parent = workspace |
| 5301 | local cuts = {} |
| 5302 | local hole = Instance.new("Part") |
| 5303 | hole.Shape = Enum.PartType.Cylinder |
| 5304 | hole.Size = Vector3.new(1, 13.56, 13.56) |
| 5305 | hole.CFrame = cyl.CFrame |
| 5306 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5307 | hole.Material = Enum.Material.Glacier |
| 5308 | hole.MaterialVariant = "2022 Stud" |
| 5309 | hole.Anchored = true; hole.Parent = workspace |
| 5310 | table.insert(cuts, hole) |
| 5311 | local angBoxes = {} |
| 5312 | do |
| 5313 | local edgeDir = 1*rightV + 0*upV |
| 5314 | local edgePerp = 0*rightV + 1*upV |
| 5315 | local cut = Instance.new("Part") |
| 5316 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 5317 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15.16 * edgePerp, edgeDir, normalV) |
| 5318 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5319 | cut.Material = Enum.Material.Glacier |
| 5320 | cut.MaterialVariant = "2022 Stud" |
| 5321 | cut.Anchored = true; cut.Parent = workspace |
| 5322 | table.insert(angBoxes, cut) |
| 5323 | end |
| 5324 | do |
| 5325 | local edgeDir = -1*rightV + 0*upV |
| 5326 | local edgePerp = 0*rightV + -1*upV |
| 5327 | local cut = Instance.new("Part") |
| 5328 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 5329 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15.16 * edgePerp, edgeDir, normalV) |
| 5330 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5331 | cut.Material = Enum.Material.Glacier |
| 5332 | cut.MaterialVariant = "2022 Stud" |
| 5333 | cut.Anchored = true; cut.Parent = workspace |
| 5334 | table.insert(angBoxes, cut) |
| 5335 | end |
| 5336 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5337 | if #cuts > 0 then |
| 5338 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5339 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5340 | if ok and result then |
| 5341 | cyl:Destroy() |
| 5342 | result.Name = "Coil_6_3_A"; result.Anchored = true; result.Parent = model |
| 5343 | else |
| 5344 | cyl.Name = "Coil_6_3_A"; cyl.Parent = model |
| 5345 | end |
| 5346 | else |
| 5347 | cyl.Name = "Coil_6_3_A"; cyl.Parent = model |
| 5348 | end |
| 5349 | end |
| 5350 | do |
| 5351 | local rightV = Vector3.new(1,0,0).Unit |
| 5352 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5353 | local normalV = upV:Cross(rightV) |
| 5354 | local pos = Vector3.new(0, 2.74, 0.08) |
| 5355 | local cyl = Instance.new("Part") |
| 5356 | cyl.Shape = Enum.PartType.Cylinder |
| 5357 | cyl.Size = Vector3.new(0.8, 15.16, 15.16) |
| 5358 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5359 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5360 | cyl.Material = Enum.Material.Glacier |
| 5361 | cyl.MaterialVariant = "2022 Stud" |
| 5362 | cyl.Anchored = true; cyl.Parent = workspace |
| 5363 | local cuts = {} |
| 5364 | local hole = Instance.new("Part") |
| 5365 | hole.Shape = Enum.PartType.Cylinder |
| 5366 | hole.Size = Vector3.new(1, 13.56, 13.56) |
| 5367 | hole.CFrame = cyl.CFrame |
| 5368 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5369 | hole.Material = Enum.Material.Glacier |
| 5370 | hole.MaterialVariant = "2022 Stud" |
| 5371 | hole.Anchored = true; hole.Parent = workspace |
| 5372 | table.insert(cuts, hole) |
| 5373 | local angBoxes = {} |
| 5374 | do |
| 5375 | local edgeDir = -1*rightV + 0*upV |
| 5376 | local edgePerp = 0*rightV + -1*upV |
| 5377 | local cut = Instance.new("Part") |
| 5378 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 5379 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 15.16 * edgePerp, edgeDir, normalV) |
| 5380 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5381 | cut.Material = Enum.Material.Glacier |
| 5382 | cut.MaterialVariant = "2022 Stud" |
| 5383 | cut.Anchored = true; cut.Parent = workspace |
| 5384 | table.insert(angBoxes, cut) |
| 5385 | end |
| 5386 | do |
| 5387 | local edgeDir = 1*rightV + 0*upV |
| 5388 | local edgePerp = 0*rightV + 1*upV |
| 5389 | local cut = Instance.new("Part") |
| 5390 | cut.Size = Vector3.new(30.32, 1, 30.32) |
| 5391 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 15.16 * edgePerp, edgeDir, normalV) |
| 5392 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5393 | cut.Material = Enum.Material.Glacier |
| 5394 | cut.MaterialVariant = "2022 Stud" |
| 5395 | cut.Anchored = true; cut.Parent = workspace |
| 5396 | table.insert(angBoxes, cut) |
| 5397 | end |
| 5398 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5399 | if #cuts > 0 then |
| 5400 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5401 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5402 | if ok and result then |
| 5403 | cyl:Destroy() |
| 5404 | result.Name = "Coil_6_3_B"; result.Anchored = true; result.Parent = model |
| 5405 | else |
| 5406 | cyl.Name = "Coil_6_3_B"; cyl.Parent = model |
| 5407 | end |
| 5408 | else |
| 5409 | cyl.Name = "Coil_6_3_B"; cyl.Parent = model |
| 5410 | end |
| 5411 | end |
| 5412 | do |
| 5413 | local rightV = Vector3.new(1,0,0).Unit |
| 5414 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5415 | local normalV = upV:Cross(rightV) |
| 5416 | local pos = Vector3.new(0, 2.82, 0.04) |
| 5417 | local cyl = Instance.new("Part") |
| 5418 | cyl.Shape = Enum.PartType.Cylinder |
| 5419 | cyl.Size = Vector3.new(0.8, 16.72, 16.72) |
| 5420 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5421 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5422 | cyl.Material = Enum.Material.Glacier |
| 5423 | cyl.MaterialVariant = "2022 Stud" |
| 5424 | cyl.Anchored = true; cyl.Parent = workspace |
| 5425 | local cuts = {} |
| 5426 | local hole = Instance.new("Part") |
| 5427 | hole.Shape = Enum.PartType.Cylinder |
| 5428 | hole.Size = Vector3.new(1, 15.12, 15.12) |
| 5429 | hole.CFrame = cyl.CFrame |
| 5430 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5431 | hole.Material = Enum.Material.Glacier |
| 5432 | hole.MaterialVariant = "2022 Stud" |
| 5433 | hole.Anchored = true; hole.Parent = workspace |
| 5434 | table.insert(cuts, hole) |
| 5435 | local angBoxes = {} |
| 5436 | do |
| 5437 | local edgeDir = 1*rightV + 0*upV |
| 5438 | local edgePerp = 0*rightV + 1*upV |
| 5439 | local cut = Instance.new("Part") |
| 5440 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 5441 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.72 * edgePerp, edgeDir, normalV) |
| 5442 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5443 | cut.Material = Enum.Material.Glacier |
| 5444 | cut.MaterialVariant = "2022 Stud" |
| 5445 | cut.Anchored = true; cut.Parent = workspace |
| 5446 | table.insert(angBoxes, cut) |
| 5447 | end |
| 5448 | do |
| 5449 | local edgeDir = -1*rightV + 0*upV |
| 5450 | local edgePerp = 0*rightV + -1*upV |
| 5451 | local cut = Instance.new("Part") |
| 5452 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 5453 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.72 * edgePerp, edgeDir, normalV) |
| 5454 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5455 | cut.Material = Enum.Material.Glacier |
| 5456 | cut.MaterialVariant = "2022 Stud" |
| 5457 | cut.Anchored = true; cut.Parent = workspace |
| 5458 | table.insert(angBoxes, cut) |
| 5459 | end |
| 5460 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5461 | if #cuts > 0 then |
| 5462 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5463 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5464 | if ok and result then |
| 5465 | cyl:Destroy() |
| 5466 | result.Name = "Coil_6_4_A"; result.Anchored = true; result.Parent = model |
| 5467 | else |
| 5468 | cyl.Name = "Coil_6_4_A"; cyl.Parent = model |
| 5469 | end |
| 5470 | else |
| 5471 | cyl.Name = "Coil_6_4_A"; cyl.Parent = model |
| 5472 | end |
| 5473 | end |
| 5474 | do |
| 5475 | local rightV = Vector3.new(1,0,0).Unit |
| 5476 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5477 | local normalV = upV:Cross(rightV) |
| 5478 | local pos = Vector3.new(0, 2.78, 0) |
| 5479 | local cyl = Instance.new("Part") |
| 5480 | cyl.Shape = Enum.PartType.Cylinder |
| 5481 | cyl.Size = Vector3.new(0.8, 16.72, 16.72) |
| 5482 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5483 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5484 | cyl.Material = Enum.Material.Glacier |
| 5485 | cyl.MaterialVariant = "2022 Stud" |
| 5486 | cyl.Anchored = true; cyl.Parent = workspace |
| 5487 | local cuts = {} |
| 5488 | local hole = Instance.new("Part") |
| 5489 | hole.Shape = Enum.PartType.Cylinder |
| 5490 | hole.Size = Vector3.new(1, 15.12, 15.12) |
| 5491 | hole.CFrame = cyl.CFrame |
| 5492 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5493 | hole.Material = Enum.Material.Glacier |
| 5494 | hole.MaterialVariant = "2022 Stud" |
| 5495 | hole.Anchored = true; hole.Parent = workspace |
| 5496 | table.insert(cuts, hole) |
| 5497 | local angBoxes = {} |
| 5498 | do |
| 5499 | local edgeDir = -1*rightV + 0*upV |
| 5500 | local edgePerp = 0*rightV + -1*upV |
| 5501 | local cut = Instance.new("Part") |
| 5502 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 5503 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16.72 * edgePerp, edgeDir, normalV) |
| 5504 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5505 | cut.Material = Enum.Material.Glacier |
| 5506 | cut.MaterialVariant = "2022 Stud" |
| 5507 | cut.Anchored = true; cut.Parent = workspace |
| 5508 | table.insert(angBoxes, cut) |
| 5509 | end |
| 5510 | do |
| 5511 | local edgeDir = 1*rightV + 0*upV |
| 5512 | local edgePerp = 0*rightV + 1*upV |
| 5513 | local cut = Instance.new("Part") |
| 5514 | cut.Size = Vector3.new(33.44, 1, 33.44) |
| 5515 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16.72 * edgePerp, edgeDir, normalV) |
| 5516 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5517 | cut.Material = Enum.Material.Glacier |
| 5518 | cut.MaterialVariant = "2022 Stud" |
| 5519 | cut.Anchored = true; cut.Parent = workspace |
| 5520 | table.insert(angBoxes, cut) |
| 5521 | end |
| 5522 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5523 | if #cuts > 0 then |
| 5524 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5525 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5526 | if ok and result then |
| 5527 | cyl:Destroy() |
| 5528 | result.Name = "Coil_6_4_B"; result.Anchored = true; result.Parent = model |
| 5529 | else |
| 5530 | cyl.Name = "Coil_6_4_B"; cyl.Parent = model |
| 5531 | end |
| 5532 | else |
| 5533 | cyl.Name = "Coil_6_4_B"; cyl.Parent = model |
| 5534 | end |
| 5535 | end |
| 5536 | do |
| 5537 | local rightV = Vector3.new(1,0,0).Unit |
| 5538 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5539 | local normalV = upV:Cross(rightV) |
| 5540 | local pos = Vector3.new(0, 2.66, 0.04) |
| 5541 | local cyl = Instance.new("Part") |
| 5542 | cyl.Shape = Enum.PartType.Cylinder |
| 5543 | cyl.Size = Vector3.new(0.8, 18.68, 18.68) |
| 5544 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5545 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5546 | cyl.Material = Enum.Material.Glacier |
| 5547 | cyl.MaterialVariant = "2022 Stud" |
| 5548 | cyl.Anchored = true; cyl.Parent = workspace |
| 5549 | local cuts = {} |
| 5550 | local hole = Instance.new("Part") |
| 5551 | hole.Shape = Enum.PartType.Cylinder |
| 5552 | hole.Size = Vector3.new(1, 17.08, 17.08) |
| 5553 | hole.CFrame = cyl.CFrame |
| 5554 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5555 | hole.Material = Enum.Material.Glacier |
| 5556 | hole.MaterialVariant = "2022 Stud" |
| 5557 | hole.Anchored = true; hole.Parent = workspace |
| 5558 | table.insert(cuts, hole) |
| 5559 | local angBoxes = {} |
| 5560 | do |
| 5561 | local edgeDir = 1*rightV + 0*upV |
| 5562 | local edgePerp = 0*rightV + 1*upV |
| 5563 | local cut = Instance.new("Part") |
| 5564 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 5565 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.68 * edgePerp, edgeDir, normalV) |
| 5566 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5567 | cut.Material = Enum.Material.Glacier |
| 5568 | cut.MaterialVariant = "2022 Stud" |
| 5569 | cut.Anchored = true; cut.Parent = workspace |
| 5570 | table.insert(angBoxes, cut) |
| 5571 | end |
| 5572 | do |
| 5573 | local edgeDir = -1*rightV + 0*upV |
| 5574 | local edgePerp = 0*rightV + -1*upV |
| 5575 | local cut = Instance.new("Part") |
| 5576 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 5577 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.68 * edgePerp, edgeDir, normalV) |
| 5578 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5579 | cut.Material = Enum.Material.Glacier |
| 5580 | cut.MaterialVariant = "2022 Stud" |
| 5581 | cut.Anchored = true; cut.Parent = workspace |
| 5582 | table.insert(angBoxes, cut) |
| 5583 | end |
| 5584 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5585 | if #cuts > 0 then |
| 5586 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5587 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5588 | if ok and result then |
| 5589 | cyl:Destroy() |
| 5590 | result.Name = "Coil_6_5_A"; result.Anchored = true; result.Parent = model |
| 5591 | else |
| 5592 | cyl.Name = "Coil_6_5_A"; cyl.Parent = model |
| 5593 | end |
| 5594 | else |
| 5595 | cyl.Name = "Coil_6_5_A"; cyl.Parent = model |
| 5596 | end |
| 5597 | end |
| 5598 | do |
| 5599 | local rightV = Vector3.new(1,0,0).Unit |
| 5600 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 5601 | local normalV = upV:Cross(rightV) |
| 5602 | local pos = Vector3.new(0, 2.62, 0) |
| 5603 | local cyl = Instance.new("Part") |
| 5604 | cyl.Shape = Enum.PartType.Cylinder |
| 5605 | cyl.Size = Vector3.new(0.8, 18.68, 18.68) |
| 5606 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 5607 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 5608 | cyl.Material = Enum.Material.Glacier |
| 5609 | cyl.MaterialVariant = "2022 Stud" |
| 5610 | cyl.Anchored = true; cyl.Parent = workspace |
| 5611 | local cuts = {} |
| 5612 | local hole = Instance.new("Part") |
| 5613 | hole.Shape = Enum.PartType.Cylinder |
| 5614 | hole.Size = Vector3.new(1, 17.08, 17.08) |
| 5615 | hole.CFrame = cyl.CFrame |
| 5616 | hole.BrickColor = BrickColor.new("Bright orange") |
| 5617 | hole.Material = Enum.Material.Glacier |
| 5618 | hole.MaterialVariant = "2022 Stud" |
| 5619 | hole.Anchored = true; hole.Parent = workspace |
| 5620 | table.insert(cuts, hole) |
| 5621 | local angBoxes = {} |
| 5622 | do |
| 5623 | local edgeDir = -1*rightV + 0*upV |
| 5624 | local edgePerp = 0*rightV + -1*upV |
| 5625 | local cut = Instance.new("Part") |
| 5626 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 5627 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 18.68 * edgePerp, edgeDir, normalV) |
| 5628 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5629 | cut.Material = Enum.Material.Glacier |
| 5630 | cut.MaterialVariant = "2022 Stud" |
| 5631 | cut.Anchored = true; cut.Parent = workspace |
| 5632 | table.insert(angBoxes, cut) |
| 5633 | end |
| 5634 | do |
| 5635 | local edgeDir = 1*rightV + 0*upV |
| 5636 | local edgePerp = 0*rightV + 1*upV |
| 5637 | local cut = Instance.new("Part") |
| 5638 | cut.Size = Vector3.new(37.36, 1, 37.36) |
| 5639 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 18.68 * edgePerp, edgeDir, normalV) |
| 5640 | cut.BrickColor = BrickColor.new("Bright orange") |
| 5641 | cut.Material = Enum.Material.Glacier |
| 5642 | cut.MaterialVariant = "2022 Stud" |
| 5643 | cut.Anchored = true; cut.Parent = workspace |
| 5644 | table.insert(angBoxes, cut) |
| 5645 | end |
| 5646 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 5647 | if #cuts > 0 then |
| 5648 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 5649 | for _, c in ipairs(cuts) do c:Destroy() end |
| 5650 | if ok and result then |
| 5651 | cyl:Destroy() |
| 5652 | result.Name = "Coil_6_5_B"; result.Anchored = true; result.Parent = model |
| 5653 | else |
| 5654 | cyl.Name = "Coil_6_5_B"; cyl.Parent = model |
| 5655 | end |
| 5656 | else |
| 5657 | cyl.Name = "Coil_6_5_B"; cyl.Parent = model |
| 5658 | end |
| 5659 | end |
| 5660 | model.PrimaryPart = model:FindFirstChild("Coil_0_0_A") |
| 5661 | print("ExtensionCord built: " .. #model:GetChildren() .. " parts") |
Loading comments...