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