Loading model...
by Brody Stuck · 8/7/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: BarbedWireBarricade |
| 3 | |
| 4 | local MS = game:GetService("MaterialService") |
| 5 | |
| 6 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 7 | if not ok then return warn(roots) end |
| 8 | |
| 9 | local tmp = Instance.new("Folder") |
| 10 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 11 | |
| 12 | for _, d in ipairs(tmp:GetDescendants()) do |
| 13 | if d:IsA("MaterialVariant") then |
| 14 | d.Parent = MS |
| 15 | end |
| 16 | end |
| 17 | tmp:Destroy() |
| 18 | |
| 19 | local model = Instance.new("Model") |
| 20 | model.Name = "BarbedWireBarricade" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Stud", |
| 25 | ["Medium stone grey"] = "2022 Inlet", |
| 26 | ["Pine Cone"] = "2022 Small Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "LeftBeam1" |
| 31 | p.Size = Vector3.new(1.2, 11, 1.6) |
| 32 | p.CFrame = CFrame.new(-6.04, 4, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 33 | p.BrickColor = BrickColor.new("Pine Cone") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Small Stud" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Name = "LeftBeam2" |
| 42 | p.Size = Vector3.new(1.2, 11, 1.6) |
| 43 | p.CFrame = CFrame.new(-4.8, 4, 0) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) |
| 44 | p.BrickColor = BrickColor.new("Pine Cone") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Small Stud" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Shape = Enum.PartType.Cylinder |
| 53 | p.Name = "LeftPlate" |
| 54 | p.Size = Vector3.new(0.2, 1.8, 1.8) |
| 55 | p.CFrame = CFrame.new(-6.78, 4, 0) |
| 56 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 57 | p.Material = Enum.Material.Glacier |
| 58 | p.MaterialVariant = "2022 Stud" |
| 59 | p.Anchored = true |
| 60 | p.Parent = model |
| 61 | end |
| 62 | do |
| 63 | local p = Instance.new("Part") |
| 64 | p.Shape = Enum.PartType.Cylinder |
| 65 | p.Name = "LeftBolt" |
| 66 | p.Size = Vector3.new(0.4, 1, 1) |
| 67 | p.CFrame = CFrame.new(-6.9, 4, 0) |
| 68 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 69 | p.Material = Enum.Material.Glacier |
| 70 | p.MaterialVariant = "2022 Inlet" |
| 71 | p.Anchored = true |
| 72 | p.Parent = model |
| 73 | end |
| 74 | do |
| 75 | local p = Instance.new("Part") |
| 76 | p.Name = "RightBeam1" |
| 77 | p.Size = Vector3.new(1.2, 11, 1.6) |
| 78 | p.CFrame = CFrame.new(4.76, 4, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 79 | p.BrickColor = BrickColor.new("Pine Cone") |
| 80 | p.Material = Enum.Material.Glacier |
| 81 | p.MaterialVariant = "2022 Small Stud" |
| 82 | p.Anchored = true |
| 83 | p.Parent = model |
| 84 | end |
| 85 | do |
| 86 | local p = Instance.new("Part") |
| 87 | p.Name = "RightBeam2" |
| 88 | p.Size = Vector3.new(1.2, 11, 1.6) |
| 89 | p.CFrame = CFrame.new(6, 4, 0) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) |
| 90 | p.BrickColor = BrickColor.new("Pine Cone") |
| 91 | p.Material = Enum.Material.Glacier |
| 92 | p.MaterialVariant = "2022 Small Stud" |
| 93 | p.Anchored = true |
| 94 | p.Parent = model |
| 95 | end |
| 96 | do |
| 97 | local p = Instance.new("Part") |
| 98 | p.Shape = Enum.PartType.Cylinder |
| 99 | p.Name = "RightPlate" |
| 100 | p.Size = Vector3.new(0.2, 1.8, 1.8) |
| 101 | p.CFrame = CFrame.new(6.74, 4, 0) |
| 102 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 103 | p.Material = Enum.Material.Glacier |
| 104 | p.MaterialVariant = "2022 Stud" |
| 105 | p.Anchored = true |
| 106 | p.Parent = model |
| 107 | end |
| 108 | do |
| 109 | local p = Instance.new("Part") |
| 110 | p.Shape = Enum.PartType.Cylinder |
| 111 | p.Name = "RightBolt" |
| 112 | p.Size = Vector3.new(0.4, 1, 1) |
| 113 | p.CFrame = CFrame.new(6.9, 4, 0) |
| 114 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 115 | p.Material = Enum.Material.Glacier |
| 116 | p.MaterialVariant = "2022 Inlet" |
| 117 | p.Anchored = true |
| 118 | p.Parent = model |
| 119 | end |
| 120 | do |
| 121 | local p = Instance.new("Part") |
| 122 | p.Shape = Enum.PartType.Cylinder |
| 123 | p.Name = "CenterPole" |
| 124 | p.Size = Vector3.new(10.8, 0.8, 0.8) |
| 125 | p.CFrame = CFrame.new(0.04, 4, 0) |
| 126 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 127 | p.Material = Enum.Material.Glacier |
| 128 | p.MaterialVariant = "2022 Stud" |
| 129 | p.Anchored = true |
| 130 | p.Parent = model |
| 131 | end |
| 132 | do |
| 133 | local p = Instance.new("Part") |
| 134 | p.Name = "Knot_0_0" |
| 135 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 136 | p.CFrame = CFrame.new(-3.95096, 6.12132, 2.04904) |
| 137 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 138 | p.Material = Enum.Material.Glacier |
| 139 | p.MaterialVariant = "2022 Stud" |
| 140 | p.Anchored = true |
| 141 | p.Parent = model |
| 142 | end |
| 143 | do |
| 144 | local p = Instance.new("Part") |
| 145 | p.Name = "Spike_0_0" |
| 146 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 147 | p.CFrame = CFrame.new(-3.95096, 6.12132, 2.04904) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(45)) |
| 148 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Inlet" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Name = "Knot_0_1" |
| 157 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 158 | p.CFrame = CFrame.new(-5.04904, 6.12132, -2.04904) |
| 159 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 160 | p.Material = Enum.Material.Glacier |
| 161 | p.MaterialVariant = "2022 Stud" |
| 162 | p.Anchored = true |
| 163 | p.Parent = model |
| 164 | end |
| 165 | do |
| 166 | local p = Instance.new("Part") |
| 167 | p.Name = "Spike_0_1" |
| 168 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 169 | p.CFrame = CFrame.new(-5.04904, 6.12132, -2.04904) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-135)) |
| 170 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 171 | p.Material = Enum.Material.Glacier |
| 172 | p.MaterialVariant = "2022 Inlet" |
| 173 | p.Anchored = true |
| 174 | p.Parent = model |
| 175 | end |
| 176 | do |
| 177 | local p = Instance.new("Part") |
| 178 | p.Name = "Knot_0_2" |
| 179 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 180 | p.CFrame = CFrame.new(-5.04904, 1.87868, -2.04904) |
| 181 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 182 | p.Material = Enum.Material.Glacier |
| 183 | p.MaterialVariant = "2022 Stud" |
| 184 | p.Anchored = true |
| 185 | p.Parent = model |
| 186 | end |
| 187 | do |
| 188 | local p = Instance.new("Part") |
| 189 | p.Name = "Spike_0_2" |
| 190 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 191 | p.CFrame = CFrame.new(-5.04904, 1.87868, -2.04904) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(135)) |
| 192 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 193 | p.Material = Enum.Material.Glacier |
| 194 | p.MaterialVariant = "2022 Inlet" |
| 195 | p.Anchored = true |
| 196 | p.Parent = model |
| 197 | end |
| 198 | do |
| 199 | local p = Instance.new("Part") |
| 200 | p.Name = "Knot_0_3" |
| 201 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 202 | p.CFrame = CFrame.new(-3.95096, 1.87868, 2.04904) |
| 203 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Stud" |
| 206 | p.Anchored = true |
| 207 | p.Parent = model |
| 208 | end |
| 209 | do |
| 210 | local p = Instance.new("Part") |
| 211 | p.Name = "Spike_0_3" |
| 212 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 213 | p.CFrame = CFrame.new(-3.95096, 1.87868, 2.04904) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-45)) |
| 214 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 215 | p.Material = Enum.Material.Glacier |
| 216 | p.MaterialVariant = "2022 Inlet" |
| 217 | p.Anchored = true |
| 218 | p.Parent = model |
| 219 | end |
| 220 | do |
| 221 | local p = Instance.new("Part") |
| 222 | p.Name = "Knot_1_0" |
| 223 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 224 | p.CFrame = CFrame.new(-2.73444, 6.81908, 0.991098) |
| 225 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 226 | p.Material = Enum.Material.Glacier |
| 227 | p.MaterialVariant = "2022 Stud" |
| 228 | p.Anchored = true |
| 229 | p.Parent = model |
| 230 | end |
| 231 | do |
| 232 | local p = Instance.new("Part") |
| 233 | p.Name = "Spike_1_0" |
| 234 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 235 | p.CFrame = CFrame.new(-2.73444, 6.81908, 0.991098) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(70)) |
| 236 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 237 | p.Material = Enum.Material.Glacier |
| 238 | p.MaterialVariant = "2022 Inlet" |
| 239 | p.Anchored = true |
| 240 | p.Parent = model |
| 241 | end |
| 242 | do |
| 243 | local p = Instance.new("Part") |
| 244 | p.Name = "Knot_1_1" |
| 245 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 246 | p.CFrame = CFrame.new(-3.72963, 5.02606, -2.72302) |
| 247 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 248 | p.Material = Enum.Material.Glacier |
| 249 | p.MaterialVariant = "2022 Stud" |
| 250 | p.Anchored = true |
| 251 | p.Parent = model |
| 252 | end |
| 253 | do |
| 254 | local p = Instance.new("Part") |
| 255 | p.Name = "Spike_1_1" |
| 256 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 257 | p.CFrame = CFrame.new(-3.72963, 5.02606, -2.72302) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-160)) |
| 258 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 259 | p.Material = Enum.Material.Glacier |
| 260 | p.MaterialVariant = "2022 Inlet" |
| 261 | p.Anchored = true |
| 262 | p.Parent = model |
| 263 | end |
| 264 | do |
| 265 | local p = Instance.new("Part") |
| 266 | p.Name = "Knot_1_2" |
| 267 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 268 | p.CFrame = CFrame.new(-3.26556, 1.18092, -0.991098) |
| 269 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 270 | p.Material = Enum.Material.Glacier |
| 271 | p.MaterialVariant = "2022 Stud" |
| 272 | p.Anchored = true |
| 273 | p.Parent = model |
| 274 | end |
| 275 | do |
| 276 | local p = Instance.new("Part") |
| 277 | p.Name = "Spike_1_2" |
| 278 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 279 | p.CFrame = CFrame.new(-3.26556, 1.18092, -0.991098) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(110)) |
| 280 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 281 | p.Material = Enum.Material.Glacier |
| 282 | p.MaterialVariant = "2022 Inlet" |
| 283 | p.Anchored = true |
| 284 | p.Parent = model |
| 285 | end |
| 286 | do |
| 287 | local p = Instance.new("Part") |
| 288 | p.Name = "Knot_1_3" |
| 289 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 290 | p.CFrame = CFrame.new(-2.27037, 2.97394, 2.72302) |
| 291 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 292 | p.Material = Enum.Material.Glacier |
| 293 | p.MaterialVariant = "2022 Stud" |
| 294 | p.Anchored = true |
| 295 | p.Parent = model |
| 296 | end |
| 297 | do |
| 298 | local p = Instance.new("Part") |
| 299 | p.Name = "Spike_1_3" |
| 300 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 301 | p.CFrame = CFrame.new(-2.27037, 2.97394, 2.72302) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-20)) |
| 302 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 303 | p.Material = Enum.Material.Glacier |
| 304 | p.MaterialVariant = "2022 Inlet" |
| 305 | p.Anchored = true |
| 306 | p.Parent = model |
| 307 | end |
| 308 | do |
| 309 | local p = Instance.new("Part") |
| 310 | p.Name = "Knot_2_0" |
| 311 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 312 | p.CFrame = CFrame.new(-1.56767, 6.98858, -0.252558) |
| 313 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 314 | p.Material = Enum.Material.Glacier |
| 315 | p.MaterialVariant = "2022 Stud" |
| 316 | p.Anchored = true |
| 317 | p.Parent = model |
| 318 | end |
| 319 | do |
| 320 | local p = Instance.new("Part") |
| 321 | p.Name = "Spike_2_0" |
| 322 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 323 | p.CFrame = CFrame.new(-1.56767, 6.98858, -0.252558) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-95)) |
| 324 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 325 | p.Material = Enum.Material.Glacier |
| 326 | p.MaterialVariant = "2022 Inlet" |
| 327 | p.Anchored = true |
| 328 | p.Parent = model |
| 329 | end |
| 330 | do |
| 331 | local p = Instance.new("Part") |
| 332 | p.Name = "Knot_2_1" |
| 333 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 334 | p.CFrame = CFrame.new(-2.2735, 3.65853, -2.88675) |
| 335 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 336 | p.Material = Enum.Material.Glacier |
| 337 | p.MaterialVariant = "2022 Stud" |
| 338 | p.Anchored = true |
| 339 | p.Parent = model |
| 340 | end |
| 341 | do |
| 342 | local p = Instance.new("Part") |
| 343 | p.Name = "Spike_2_1" |
| 344 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 345 | p.CFrame = CFrame.new(-2.2735, 3.73853, -2.88675) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(175)) |
| 346 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 347 | p.Material = Enum.Material.Glacier |
| 348 | p.MaterialVariant = "2022 Inlet" |
| 349 | p.Anchored = true |
| 350 | p.Parent = model |
| 351 | end |
| 352 | do |
| 353 | local p = Instance.new("Part") |
| 354 | p.Name = "Knot_2_2" |
| 355 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 356 | p.CFrame = CFrame.new(-1.43233, 1.01142, 0.252558) |
| 357 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 358 | p.Material = Enum.Material.Glacier |
| 359 | p.MaterialVariant = "2022 Stud" |
| 360 | p.Anchored = true |
| 361 | p.Parent = model |
| 362 | end |
| 363 | do |
| 364 | local p = Instance.new("Part") |
| 365 | p.Name = "Spike_2_2" |
| 366 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 367 | p.CFrame = CFrame.new(-1.43233, 1.01142, 0.252558) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-85)) |
| 368 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 369 | p.Material = Enum.Material.Glacier |
| 370 | p.MaterialVariant = "2022 Inlet" |
| 371 | p.Anchored = true |
| 372 | p.Parent = model |
| 373 | end |
| 374 | do |
| 375 | local p = Instance.new("Part") |
| 376 | p.Name = "Knot_2_3" |
| 377 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 378 | p.CFrame = CFrame.new(-0.726498, 4.26147, 2.88675) |
| 379 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 380 | p.Material = Enum.Material.Glacier |
| 381 | p.MaterialVariant = "2022 Stud" |
| 382 | p.Anchored = true |
| 383 | p.Parent = model |
| 384 | end |
| 385 | do |
| 386 | local p = Instance.new("Part") |
| 387 | p.Name = "Spike_2_3" |
| 388 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 389 | p.CFrame = CFrame.new(-0.726498, 4.26147, 2.88675) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(5)) |
| 390 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Inlet" |
| 393 | p.Anchored = true |
| 394 | p.Parent = model |
| 395 | end |
| 396 | do |
| 397 | local p = Instance.new("Part") |
| 398 | p.Name = "Knot_3_0" |
| 399 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 400 | p.CFrame = CFrame.new(-0.388229, 6.59808, -1.44889) |
| 401 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 402 | p.Material = Enum.Material.Glacier |
| 403 | p.MaterialVariant = "2022 Stud" |
| 404 | p.Anchored = true |
| 405 | p.Parent = model |
| 406 | end |
| 407 | do |
| 408 | local p = Instance.new("Part") |
| 409 | p.Name = "Spike_3_0" |
| 410 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 411 | p.CFrame = CFrame.new(-0.388229, 6.59808, -1.44889) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-120)) |
| 412 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 413 | p.Material = Enum.Material.Glacier |
| 414 | p.MaterialVariant = "2022 Inlet" |
| 415 | p.Anchored = true |
| 416 | p.Parent = model |
| 417 | end |
| 418 | do |
| 419 | local p = Instance.new("Part") |
| 420 | p.Name = "Knot_3_1" |
| 421 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 422 | p.CFrame = CFrame.new(-0.672432, 2.5, -2.50955) |
| 423 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 424 | p.Material = Enum.Material.Glacier |
| 425 | p.MaterialVariant = "2022 Stud" |
| 426 | p.Anchored = true |
| 427 | p.Parent = model |
| 428 | end |
| 429 | do |
| 430 | local p = Instance.new("Part") |
| 431 | p.Name = "Spike_3_1" |
| 432 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 433 | p.CFrame = CFrame.new(-0.672432, 2.5, -2.50955) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(150)) |
| 434 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 435 | p.Material = Enum.Material.Glacier |
| 436 | p.MaterialVariant = "2022 Inlet" |
| 437 | p.Anchored = true |
| 438 | p.Parent = model |
| 439 | end |
| 440 | do |
| 441 | local p = Instance.new("Part") |
| 442 | p.Name = "Knot_3_2" |
| 443 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 444 | p.CFrame = CFrame.new(0.388229, 1.40192, 1.44889) |
| 445 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 446 | p.Material = Enum.Material.Glacier |
| 447 | p.MaterialVariant = "2022 Stud" |
| 448 | p.Anchored = true |
| 449 | p.Parent = model |
| 450 | end |
| 451 | do |
| 452 | local p = Instance.new("Part") |
| 453 | p.Name = "Spike_3_2" |
| 454 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 455 | p.CFrame = CFrame.new(0.388229, 1.40192, 1.44889) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-60)) |
| 456 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 457 | p.Material = Enum.Material.Glacier |
| 458 | p.MaterialVariant = "2022 Inlet" |
| 459 | p.Anchored = true |
| 460 | p.Parent = model |
| 461 | end |
| 462 | do |
| 463 | local p = Instance.new("Part") |
| 464 | p.Name = "Knot_3_3" |
| 465 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 466 | p.CFrame = CFrame.new(0.672432, 5.5, 2.50955) |
| 467 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 468 | p.Material = Enum.Material.Glacier |
| 469 | p.MaterialVariant = "2022 Stud" |
| 470 | p.Anchored = true |
| 471 | p.Parent = model |
| 472 | end |
| 473 | do |
| 474 | local p = Instance.new("Part") |
| 475 | p.Name = "Spike_3_3" |
| 476 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 477 | p.CFrame = CFrame.new(0.672432, 5.5, 2.50955) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(30)) |
| 478 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 479 | p.Material = Enum.Material.Glacier |
| 480 | p.MaterialVariant = "2022 Inlet" |
| 481 | p.Anchored = true |
| 482 | p.Parent = model |
| 483 | end |
| 484 | do |
| 485 | local p = Instance.new("Part") |
| 486 | p.Name = "Knot_4_0" |
| 487 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 488 | p.CFrame = CFrame.new(0.863964, 5.72073, -2.37372) |
| 489 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 490 | p.Material = Enum.Material.Glacier |
| 491 | p.MaterialVariant = "2022 Stud" |
| 492 | p.Anchored = true |
| 493 | p.Parent = model |
| 494 | end |
| 495 | do |
| 496 | local p = Instance.new("Part") |
| 497 | p.Name = "Spike_4_0" |
| 498 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 499 | p.CFrame = CFrame.new(0.863964, 5.72073, -2.37372) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-145)) |
| 500 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 501 | p.Material = Enum.Material.Glacier |
| 502 | p.MaterialVariant = "2022 Inlet" |
| 503 | p.Anchored = true |
| 504 | p.Parent = model |
| 505 | end |
| 506 | do |
| 507 | local p = Instance.new("Part") |
| 508 | p.Name = "Knot_4_1" |
| 509 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 510 | p.CFrame = CFrame.new(1.05464, 1.54254, -1.6621) |
| 511 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 512 | p.Material = Enum.Material.Glacier |
| 513 | p.MaterialVariant = "2022 Stud" |
| 514 | p.Anchored = true |
| 515 | p.Parent = model |
| 516 | end |
| 517 | do |
| 518 | local p = Instance.new("Part") |
| 519 | p.Name = "Spike_4_1" |
| 520 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 521 | p.CFrame = CFrame.new(1.05464, 1.54254, -1.6621) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(125)) |
| 522 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 523 | p.Material = Enum.Material.Glacier |
| 524 | p.MaterialVariant = "2022 Inlet" |
| 525 | p.Anchored = true |
| 526 | p.Parent = model |
| 527 | end |
| 528 | do |
| 529 | local p = Instance.new("Part") |
| 530 | p.Name = "Knot_4_2" |
| 531 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 532 | p.CFrame = CFrame.new(2.13604, 2.27927, 2.37372) |
| 533 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 534 | p.Material = Enum.Material.Glacier |
| 535 | p.MaterialVariant = "2022 Stud" |
| 536 | p.Anchored = true |
| 537 | p.Parent = model |
| 538 | end |
| 539 | do |
| 540 | local p = Instance.new("Part") |
| 541 | p.Name = "Spike_4_2" |
| 542 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 543 | p.CFrame = CFrame.new(2.13604, 2.27927, 2.37372) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-35)) |
| 544 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 545 | p.Material = Enum.Material.Glacier |
| 546 | p.MaterialVariant = "2022 Inlet" |
| 547 | p.Anchored = true |
| 548 | p.Parent = model |
| 549 | end |
| 550 | do |
| 551 | local p = Instance.new("Part") |
| 552 | p.Name = "Knot_4_3" |
| 553 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 554 | p.CFrame = CFrame.new(1.94536, 6.45746, 1.6621) |
| 555 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 556 | p.Material = Enum.Material.Glacier |
| 557 | p.MaterialVariant = "2022 Stud" |
| 558 | p.Anchored = true |
| 559 | p.Parent = model |
| 560 | end |
| 561 | do |
| 562 | local p = Instance.new("Part") |
| 563 | p.Name = "Spike_4_3" |
| 564 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 565 | p.CFrame = CFrame.new(1.94536, 6.45746, 1.6621) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(55)) |
| 566 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 567 | p.Material = Enum.Material.Glacier |
| 568 | p.MaterialVariant = "2022 Inlet" |
| 569 | p.Anchored = true |
| 570 | p.Parent = model |
| 571 | end |
| 572 | do |
| 573 | local p = Instance.new("Part") |
| 574 | p.Name = "Knot_5_0" |
| 575 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 576 | p.CFrame = CFrame.new(2.23534, 4.52095, -2.85375) |
| 577 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 578 | p.Material = Enum.Material.Glacier |
| 579 | p.MaterialVariant = "2022 Stud" |
| 580 | p.Anchored = true |
| 581 | p.Parent = model |
| 582 | end |
| 583 | do |
| 584 | local p = Instance.new("Part") |
| 585 | p.Name = "Spike_5_0" |
| 586 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 587 | p.CFrame = CFrame.new(2.23534, 4.52095, -2.85375) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-170)) |
| 588 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 589 | p.Material = Enum.Material.Glacier |
| 590 | p.MaterialVariant = "2022 Inlet" |
| 591 | p.Anchored = true |
| 592 | p.Parent = model |
| 593 | end |
| 594 | do |
| 595 | local p = Instance.new("Part") |
| 596 | p.Name = "Knot_5_1" |
| 597 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 598 | p.CFrame = CFrame.new(2.86517, 1.04558, -0.503194) |
| 599 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 600 | p.Material = Enum.Material.Glacier |
| 601 | p.MaterialVariant = "2022 Stud" |
| 602 | p.Anchored = true |
| 603 | p.Parent = model |
| 604 | end |
| 605 | do |
| 606 | local p = Instance.new("Part") |
| 607 | p.Name = "Spike_5_1" |
| 608 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 609 | p.CFrame = CFrame.new(2.86517, 1.04558, -0.503194) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(100)) |
| 610 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 611 | p.Material = Enum.Material.Glacier |
| 612 | p.MaterialVariant = "2022 Inlet" |
| 613 | p.Anchored = true |
| 614 | p.Parent = model |
| 615 | end |
| 616 | do |
| 617 | local p = Instance.new("Part") |
| 618 | p.Name = "Knot_5_2" |
| 619 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 620 | p.CFrame = CFrame.new(3.76466, 3.47905, 2.85375) |
| 621 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 622 | p.Material = Enum.Material.Glacier |
| 623 | p.MaterialVariant = "2022 Stud" |
| 624 | p.Anchored = true |
| 625 | p.Parent = model |
| 626 | end |
| 627 | do |
| 628 | local p = Instance.new("Part") |
| 629 | p.Name = "Spike_5_2" |
| 630 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 631 | p.CFrame = CFrame.new(3.76466, 3.47905, 2.85375) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-10)) |
| 632 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 633 | p.Material = Enum.Material.Glacier |
| 634 | p.MaterialVariant = "2022 Inlet" |
| 635 | p.Anchored = true |
| 636 | p.Parent = model |
| 637 | end |
| 638 | do |
| 639 | local p = Instance.new("Part") |
| 640 | p.Name = "Knot_5_3" |
| 641 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 642 | p.CFrame = CFrame.new(3.13483, 6.95442, 0.503194) |
| 643 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 644 | p.Material = Enum.Material.Glacier |
| 645 | p.MaterialVariant = "2022 Stud" |
| 646 | p.Anchored = true |
| 647 | p.Parent = model |
| 648 | end |
| 649 | do |
| 650 | local p = Instance.new("Part") |
| 651 | p.Name = "Spike_5_3" |
| 652 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 653 | p.CFrame = CFrame.new(3.13483, 6.95442, 0.503194) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(80)) |
| 654 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 655 | p.Material = Enum.Material.Glacier |
| 656 | p.MaterialVariant = "2022 Inlet" |
| 657 | p.Anchored = true |
| 658 | p.Parent = model |
| 659 | end |
| 660 | do |
| 661 | local p = Instance.new("Part") |
| 662 | p.Name = "Knot_6_0" |
| 663 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 664 | p.CFrame = CFrame.new(3.75, 3.22354, -2.79904) |
| 665 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 666 | p.Material = Enum.Material.Glacier |
| 667 | p.MaterialVariant = "2022 Stud" |
| 668 | p.Anchored = true |
| 669 | p.Parent = model |
| 670 | end |
| 671 | do |
| 672 | local p = Instance.new("Part") |
| 673 | p.Name = "Spike_6_0" |
| 674 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 675 | p.CFrame = CFrame.new(3.75, 3.22354, -2.79904) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(165)) |
| 676 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 677 | p.Material = Enum.Material.Glacier |
| 678 | p.MaterialVariant = "2022 Inlet" |
| 679 | p.Anchored = true |
| 680 | p.Parent = model |
| 681 | end |
| 682 | do |
| 683 | local p = Instance.new("Part") |
| 684 | p.Name = "Knot_6_1" |
| 685 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 686 | p.CFrame = CFrame.new(4.70096, 1.10222, 0.75) |
| 687 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 688 | p.Material = Enum.Material.Glacier |
| 689 | p.MaterialVariant = "2022 Stud" |
| 690 | p.Anchored = true |
| 691 | p.Parent = model |
| 692 | end |
| 693 | do |
| 694 | local p = Instance.new("Part") |
| 695 | p.Name = "Spike_6_1" |
| 696 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 697 | p.CFrame = CFrame.new(4.70096, 1.10222, 0.75) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(-75)) |
| 698 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 699 | p.Material = Enum.Material.Glacier |
| 700 | p.MaterialVariant = "2022 Inlet" |
| 701 | p.Anchored = true |
| 702 | p.Parent = model |
| 703 | end |
| 704 | do |
| 705 | local p = Instance.new("Part") |
| 706 | p.Name = "Knot_6_2" |
| 707 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 708 | p.CFrame = CFrame.new(5.25, 4.77646, 2.79904) |
| 709 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 710 | p.Material = Enum.Material.Glacier |
| 711 | p.MaterialVariant = "2022 Stud" |
| 712 | p.Anchored = true |
| 713 | p.Parent = model |
| 714 | end |
| 715 | do |
| 716 | local p = Instance.new("Part") |
| 717 | p.Name = "Spike_6_2" |
| 718 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 719 | p.CFrame = CFrame.new(5.25, 4.77646, 2.79904) * CFrame.Angles(math.rad(0), math.rad(-75), math.rad(15)) |
| 720 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 721 | p.Material = Enum.Material.Glacier |
| 722 | p.MaterialVariant = "2022 Inlet" |
| 723 | p.Anchored = true |
| 724 | p.Parent = model |
| 725 | end |
| 726 | do |
| 727 | local p = Instance.new("Part") |
| 728 | p.Name = "Knot_6_3" |
| 729 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 730 | p.CFrame = CFrame.new(4.29904, 6.89778, -0.75) |
| 731 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 732 | p.Material = Enum.Material.Glacier |
| 733 | p.MaterialVariant = "2022 Stud" |
| 734 | p.Anchored = true |
| 735 | p.Parent = model |
| 736 | end |
| 737 | do |
| 738 | local p = Instance.new("Part") |
| 739 | p.Name = "Spike_6_3" |
| 740 | p.Size = Vector3.new(1.6, 0.15, 0.15) |
| 741 | p.CFrame = CFrame.new(4.29904, 6.89778, -0.75) * CFrame.Angles(math.rad(-180), math.rad(75), math.rad(-105)) |
| 742 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 743 | p.Material = Enum.Material.Glacier |
| 744 | p.MaterialVariant = "2022 Inlet" |
| 745 | p.Anchored = true |
| 746 | p.Parent = model |
| 747 | end |
| 748 | do |
| 749 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 750 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 751 | local normalV = upV:Cross(rightV) |
| 752 | local pos = Vector3.new(-4.5, 4.04, 0) |
| 753 | local cyl = Instance.new("Part") |
| 754 | cyl.Shape = Enum.PartType.Cylinder |
| 755 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 756 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 757 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 758 | cyl.Material = Enum.Material.Glacier |
| 759 | cyl.MaterialVariant = "2022 Inlet" |
| 760 | cyl.Anchored = true; cyl.Parent = workspace |
| 761 | local cuts = {} |
| 762 | local hole = Instance.new("Part") |
| 763 | hole.Shape = Enum.PartType.Cylinder |
| 764 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 765 | hole.CFrame = cyl.CFrame |
| 766 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 767 | hole.Material = Enum.Material.Glacier |
| 768 | hole.MaterialVariant = "2022 Inlet" |
| 769 | hole.Anchored = true; hole.Parent = workspace |
| 770 | table.insert(cuts, hole) |
| 771 | local angBoxes = {} |
| 772 | do |
| 773 | local edgeDir = 1*rightV + 0*upV |
| 774 | local edgePerp = 0*rightV + 1*upV |
| 775 | local cut = Instance.new("Part") |
| 776 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 777 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 778 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 779 | cut.Material = Enum.Material.Glacier |
| 780 | cut.MaterialVariant = "2022 Inlet" |
| 781 | cut.Anchored = true; cut.Parent = workspace |
| 782 | table.insert(angBoxes, cut) |
| 783 | end |
| 784 | do |
| 785 | local edgeDir = -1*rightV + 0*upV |
| 786 | local edgePerp = 0*rightV + -1*upV |
| 787 | local cut = Instance.new("Part") |
| 788 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 789 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 790 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 791 | cut.Material = Enum.Material.Glacier |
| 792 | cut.MaterialVariant = "2022 Inlet" |
| 793 | cut.Anchored = true; cut.Parent = workspace |
| 794 | table.insert(angBoxes, cut) |
| 795 | end |
| 796 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 797 | if #cuts > 0 then |
| 798 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 799 | for _, c in ipairs(cuts) do c:Destroy() end |
| 800 | if ok and result then |
| 801 | cyl:Destroy() |
| 802 | result.Name = "Coil_0_Top"; result.Anchored = true; result.Parent = model |
| 803 | else |
| 804 | cyl.Name = "Coil_0_Top"; cyl.Parent = model |
| 805 | end |
| 806 | else |
| 807 | cyl.Name = "Coil_0_Top"; cyl.Parent = model |
| 808 | end |
| 809 | end |
| 810 | do |
| 811 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 812 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 813 | local normalV = upV:Cross(rightV) |
| 814 | local pos = Vector3.new(-4.5, 4, 0) |
| 815 | local cyl = Instance.new("Part") |
| 816 | cyl.Shape = Enum.PartType.Cylinder |
| 817 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 818 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 819 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 820 | cyl.Material = Enum.Material.Glacier |
| 821 | cyl.MaterialVariant = "2022 Inlet" |
| 822 | cyl.Anchored = true; cyl.Parent = workspace |
| 823 | local cuts = {} |
| 824 | local hole = Instance.new("Part") |
| 825 | hole.Shape = Enum.PartType.Cylinder |
| 826 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 827 | hole.CFrame = cyl.CFrame |
| 828 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 829 | hole.Material = Enum.Material.Glacier |
| 830 | hole.MaterialVariant = "2022 Inlet" |
| 831 | hole.Anchored = true; hole.Parent = workspace |
| 832 | table.insert(cuts, hole) |
| 833 | local angBoxes = {} |
| 834 | do |
| 835 | local edgeDir = -1*rightV + 0*upV |
| 836 | local edgePerp = 0*rightV + -1*upV |
| 837 | local cut = Instance.new("Part") |
| 838 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 839 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 840 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 841 | cut.Material = Enum.Material.Glacier |
| 842 | cut.MaterialVariant = "2022 Inlet" |
| 843 | cut.Anchored = true; cut.Parent = workspace |
| 844 | table.insert(angBoxes, cut) |
| 845 | end |
| 846 | do |
| 847 | local edgeDir = 1*rightV + 0*upV |
| 848 | local edgePerp = 0*rightV + 1*upV |
| 849 | local cut = Instance.new("Part") |
| 850 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 851 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 852 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 853 | cut.Material = Enum.Material.Glacier |
| 854 | cut.MaterialVariant = "2022 Inlet" |
| 855 | cut.Anchored = true; cut.Parent = workspace |
| 856 | table.insert(angBoxes, cut) |
| 857 | end |
| 858 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 859 | if #cuts > 0 then |
| 860 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 861 | for _, c in ipairs(cuts) do c:Destroy() end |
| 862 | if ok and result then |
| 863 | cyl:Destroy() |
| 864 | result.Name = "Coil_0_Bot"; result.Anchored = true; result.Parent = model |
| 865 | else |
| 866 | cyl.Name = "Coil_0_Bot"; cyl.Parent = model |
| 867 | end |
| 868 | else |
| 869 | cyl.Name = "Coil_0_Bot"; cyl.Parent = model |
| 870 | end |
| 871 | end |
| 872 | do |
| 873 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 874 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 875 | local normalV = upV:Cross(rightV) |
| 876 | local pos = Vector3.new(-3, 4.04, 0) |
| 877 | local cyl = Instance.new("Part") |
| 878 | cyl.Shape = Enum.PartType.Cylinder |
| 879 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 880 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 881 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 882 | cyl.Material = Enum.Material.Glacier |
| 883 | cyl.MaterialVariant = "2022 Inlet" |
| 884 | cyl.Anchored = true; cyl.Parent = workspace |
| 885 | local cuts = {} |
| 886 | local hole = Instance.new("Part") |
| 887 | hole.Shape = Enum.PartType.Cylinder |
| 888 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 889 | hole.CFrame = cyl.CFrame |
| 890 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 891 | hole.Material = Enum.Material.Glacier |
| 892 | hole.MaterialVariant = "2022 Inlet" |
| 893 | hole.Anchored = true; hole.Parent = workspace |
| 894 | table.insert(cuts, hole) |
| 895 | local angBoxes = {} |
| 896 | do |
| 897 | local edgeDir = 1*rightV + 0*upV |
| 898 | local edgePerp = 0*rightV + 1*upV |
| 899 | local cut = Instance.new("Part") |
| 900 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 901 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 902 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 903 | cut.Material = Enum.Material.Glacier |
| 904 | cut.MaterialVariant = "2022 Inlet" |
| 905 | cut.Anchored = true; cut.Parent = workspace |
| 906 | table.insert(angBoxes, cut) |
| 907 | end |
| 908 | do |
| 909 | local edgeDir = -1*rightV + 0*upV |
| 910 | local edgePerp = 0*rightV + -1*upV |
| 911 | local cut = Instance.new("Part") |
| 912 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 913 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 914 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 915 | cut.Material = Enum.Material.Glacier |
| 916 | cut.MaterialVariant = "2022 Inlet" |
| 917 | cut.Anchored = true; cut.Parent = workspace |
| 918 | table.insert(angBoxes, cut) |
| 919 | end |
| 920 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 921 | if #cuts > 0 then |
| 922 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 923 | for _, c in ipairs(cuts) do c:Destroy() end |
| 924 | if ok and result then |
| 925 | cyl:Destroy() |
| 926 | result.Name = "Coil_1_Top"; result.Anchored = true; result.Parent = model |
| 927 | else |
| 928 | cyl.Name = "Coil_1_Top"; cyl.Parent = model |
| 929 | end |
| 930 | else |
| 931 | cyl.Name = "Coil_1_Top"; cyl.Parent = model |
| 932 | end |
| 933 | end |
| 934 | do |
| 935 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 936 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 937 | local normalV = upV:Cross(rightV) |
| 938 | local pos = Vector3.new(-3, 4, 0) |
| 939 | local cyl = Instance.new("Part") |
| 940 | cyl.Shape = Enum.PartType.Cylinder |
| 941 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 942 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 943 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 944 | cyl.Material = Enum.Material.Glacier |
| 945 | cyl.MaterialVariant = "2022 Inlet" |
| 946 | cyl.Anchored = true; cyl.Parent = workspace |
| 947 | local cuts = {} |
| 948 | local hole = Instance.new("Part") |
| 949 | hole.Shape = Enum.PartType.Cylinder |
| 950 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 951 | hole.CFrame = cyl.CFrame |
| 952 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 953 | hole.Material = Enum.Material.Glacier |
| 954 | hole.MaterialVariant = "2022 Inlet" |
| 955 | hole.Anchored = true; hole.Parent = workspace |
| 956 | table.insert(cuts, hole) |
| 957 | local angBoxes = {} |
| 958 | do |
| 959 | local edgeDir = -1*rightV + 0*upV |
| 960 | local edgePerp = 0*rightV + -1*upV |
| 961 | local cut = Instance.new("Part") |
| 962 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 963 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 964 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 965 | cut.Material = Enum.Material.Glacier |
| 966 | cut.MaterialVariant = "2022 Inlet" |
| 967 | cut.Anchored = true; cut.Parent = workspace |
| 968 | table.insert(angBoxes, cut) |
| 969 | end |
| 970 | do |
| 971 | local edgeDir = 1*rightV + 0*upV |
| 972 | local edgePerp = 0*rightV + 1*upV |
| 973 | local cut = Instance.new("Part") |
| 974 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 975 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 976 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 977 | cut.Material = Enum.Material.Glacier |
| 978 | cut.MaterialVariant = "2022 Inlet" |
| 979 | cut.Anchored = true; cut.Parent = workspace |
| 980 | table.insert(angBoxes, cut) |
| 981 | end |
| 982 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 983 | if #cuts > 0 then |
| 984 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 985 | for _, c in ipairs(cuts) do c:Destroy() end |
| 986 | if ok and result then |
| 987 | cyl:Destroy() |
| 988 | result.Name = "Coil_1_Bot"; result.Anchored = true; result.Parent = model |
| 989 | else |
| 990 | cyl.Name = "Coil_1_Bot"; cyl.Parent = model |
| 991 | end |
| 992 | else |
| 993 | cyl.Name = "Coil_1_Bot"; cyl.Parent = model |
| 994 | end |
| 995 | end |
| 996 | do |
| 997 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 998 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 999 | local normalV = upV:Cross(rightV) |
| 1000 | local pos = Vector3.new(-1.5, 4.04, 0) |
| 1001 | local cyl = Instance.new("Part") |
| 1002 | cyl.Shape = Enum.PartType.Cylinder |
| 1003 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1004 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1005 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1006 | cyl.Material = Enum.Material.Glacier |
| 1007 | cyl.MaterialVariant = "2022 Inlet" |
| 1008 | cyl.Anchored = true; cyl.Parent = workspace |
| 1009 | local cuts = {} |
| 1010 | local hole = Instance.new("Part") |
| 1011 | hole.Shape = Enum.PartType.Cylinder |
| 1012 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1013 | hole.CFrame = cyl.CFrame |
| 1014 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1015 | hole.Material = Enum.Material.Glacier |
| 1016 | hole.MaterialVariant = "2022 Inlet" |
| 1017 | hole.Anchored = true; hole.Parent = workspace |
| 1018 | table.insert(cuts, hole) |
| 1019 | local angBoxes = {} |
| 1020 | do |
| 1021 | local edgeDir = 1*rightV + 0*upV |
| 1022 | local edgePerp = 0*rightV + 1*upV |
| 1023 | local cut = Instance.new("Part") |
| 1024 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1025 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1026 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1027 | cut.Material = Enum.Material.Glacier |
| 1028 | cut.MaterialVariant = "2022 Inlet" |
| 1029 | cut.Anchored = true; cut.Parent = workspace |
| 1030 | table.insert(angBoxes, cut) |
| 1031 | end |
| 1032 | do |
| 1033 | local edgeDir = -1*rightV + 0*upV |
| 1034 | local edgePerp = 0*rightV + -1*upV |
| 1035 | local cut = Instance.new("Part") |
| 1036 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1037 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1038 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1039 | cut.Material = Enum.Material.Glacier |
| 1040 | cut.MaterialVariant = "2022 Inlet" |
| 1041 | cut.Anchored = true; cut.Parent = workspace |
| 1042 | table.insert(angBoxes, cut) |
| 1043 | end |
| 1044 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1045 | if #cuts > 0 then |
| 1046 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1047 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1048 | if ok and result then |
| 1049 | cyl:Destroy() |
| 1050 | result.Name = "Coil_2_Top"; result.Anchored = true; result.Parent = model |
| 1051 | else |
| 1052 | cyl.Name = "Coil_2_Top"; cyl.Parent = model |
| 1053 | end |
| 1054 | else |
| 1055 | cyl.Name = "Coil_2_Top"; cyl.Parent = model |
| 1056 | end |
| 1057 | end |
| 1058 | do |
| 1059 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1060 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1061 | local normalV = upV:Cross(rightV) |
| 1062 | local pos = Vector3.new(-1.5, 4, 0) |
| 1063 | local cyl = Instance.new("Part") |
| 1064 | cyl.Shape = Enum.PartType.Cylinder |
| 1065 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1066 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1067 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1068 | cyl.Material = Enum.Material.Glacier |
| 1069 | cyl.MaterialVariant = "2022 Inlet" |
| 1070 | cyl.Anchored = true; cyl.Parent = workspace |
| 1071 | local cuts = {} |
| 1072 | local hole = Instance.new("Part") |
| 1073 | hole.Shape = Enum.PartType.Cylinder |
| 1074 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1075 | hole.CFrame = cyl.CFrame |
| 1076 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1077 | hole.Material = Enum.Material.Glacier |
| 1078 | hole.MaterialVariant = "2022 Inlet" |
| 1079 | hole.Anchored = true; hole.Parent = workspace |
| 1080 | table.insert(cuts, hole) |
| 1081 | local angBoxes = {} |
| 1082 | do |
| 1083 | local edgeDir = -1*rightV + 0*upV |
| 1084 | local edgePerp = 0*rightV + -1*upV |
| 1085 | local cut = Instance.new("Part") |
| 1086 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1087 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1088 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1089 | cut.Material = Enum.Material.Glacier |
| 1090 | cut.MaterialVariant = "2022 Inlet" |
| 1091 | cut.Anchored = true; cut.Parent = workspace |
| 1092 | table.insert(angBoxes, cut) |
| 1093 | end |
| 1094 | do |
| 1095 | local edgeDir = 1*rightV + 0*upV |
| 1096 | local edgePerp = 0*rightV + 1*upV |
| 1097 | local cut = Instance.new("Part") |
| 1098 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1099 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1100 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1101 | cut.Material = Enum.Material.Glacier |
| 1102 | cut.MaterialVariant = "2022 Inlet" |
| 1103 | cut.Anchored = true; cut.Parent = workspace |
| 1104 | table.insert(angBoxes, cut) |
| 1105 | end |
| 1106 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1107 | if #cuts > 0 then |
| 1108 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1109 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1110 | if ok and result then |
| 1111 | cyl:Destroy() |
| 1112 | result.Name = "Coil_2_Bot"; result.Anchored = true; result.Parent = model |
| 1113 | else |
| 1114 | cyl.Name = "Coil_2_Bot"; cyl.Parent = model |
| 1115 | end |
| 1116 | else |
| 1117 | cyl.Name = "Coil_2_Bot"; cyl.Parent = model |
| 1118 | end |
| 1119 | end |
| 1120 | do |
| 1121 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1122 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1123 | local normalV = upV:Cross(rightV) |
| 1124 | local pos = Vector3.new(0, 4.04, 0) |
| 1125 | local cyl = Instance.new("Part") |
| 1126 | cyl.Shape = Enum.PartType.Cylinder |
| 1127 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1128 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1129 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1130 | cyl.Material = Enum.Material.Glacier |
| 1131 | cyl.MaterialVariant = "2022 Inlet" |
| 1132 | cyl.Anchored = true; cyl.Parent = workspace |
| 1133 | local cuts = {} |
| 1134 | local hole = Instance.new("Part") |
| 1135 | hole.Shape = Enum.PartType.Cylinder |
| 1136 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1137 | hole.CFrame = cyl.CFrame |
| 1138 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1139 | hole.Material = Enum.Material.Glacier |
| 1140 | hole.MaterialVariant = "2022 Inlet" |
| 1141 | hole.Anchored = true; hole.Parent = workspace |
| 1142 | table.insert(cuts, hole) |
| 1143 | local angBoxes = {} |
| 1144 | do |
| 1145 | local edgeDir = 1*rightV + 0*upV |
| 1146 | local edgePerp = 0*rightV + 1*upV |
| 1147 | local cut = Instance.new("Part") |
| 1148 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1149 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1150 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1151 | cut.Material = Enum.Material.Glacier |
| 1152 | cut.MaterialVariant = "2022 Inlet" |
| 1153 | cut.Anchored = true; cut.Parent = workspace |
| 1154 | table.insert(angBoxes, cut) |
| 1155 | end |
| 1156 | do |
| 1157 | local edgeDir = -1*rightV + 0*upV |
| 1158 | local edgePerp = 0*rightV + -1*upV |
| 1159 | local cut = Instance.new("Part") |
| 1160 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1161 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1162 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1163 | cut.Material = Enum.Material.Glacier |
| 1164 | cut.MaterialVariant = "2022 Inlet" |
| 1165 | cut.Anchored = true; cut.Parent = workspace |
| 1166 | table.insert(angBoxes, cut) |
| 1167 | end |
| 1168 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1169 | if #cuts > 0 then |
| 1170 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1171 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1172 | if ok and result then |
| 1173 | cyl:Destroy() |
| 1174 | result.Name = "Coil_3_Top"; result.Anchored = true; result.Parent = model |
| 1175 | else |
| 1176 | cyl.Name = "Coil_3_Top"; cyl.Parent = model |
| 1177 | end |
| 1178 | else |
| 1179 | cyl.Name = "Coil_3_Top"; cyl.Parent = model |
| 1180 | end |
| 1181 | end |
| 1182 | do |
| 1183 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1184 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1185 | local normalV = upV:Cross(rightV) |
| 1186 | local pos = Vector3.new(0, 4, 0) |
| 1187 | local cyl = Instance.new("Part") |
| 1188 | cyl.Shape = Enum.PartType.Cylinder |
| 1189 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1190 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1191 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1192 | cyl.Material = Enum.Material.Glacier |
| 1193 | cyl.MaterialVariant = "2022 Inlet" |
| 1194 | cyl.Anchored = true; cyl.Parent = workspace |
| 1195 | local cuts = {} |
| 1196 | local hole = Instance.new("Part") |
| 1197 | hole.Shape = Enum.PartType.Cylinder |
| 1198 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1199 | hole.CFrame = cyl.CFrame |
| 1200 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1201 | hole.Material = Enum.Material.Glacier |
| 1202 | hole.MaterialVariant = "2022 Inlet" |
| 1203 | hole.Anchored = true; hole.Parent = workspace |
| 1204 | table.insert(cuts, hole) |
| 1205 | local angBoxes = {} |
| 1206 | do |
| 1207 | local edgeDir = -1*rightV + 0*upV |
| 1208 | local edgePerp = 0*rightV + -1*upV |
| 1209 | local cut = Instance.new("Part") |
| 1210 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1211 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1212 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1213 | cut.Material = Enum.Material.Glacier |
| 1214 | cut.MaterialVariant = "2022 Inlet" |
| 1215 | cut.Anchored = true; cut.Parent = workspace |
| 1216 | table.insert(angBoxes, cut) |
| 1217 | end |
| 1218 | do |
| 1219 | local edgeDir = 1*rightV + 0*upV |
| 1220 | local edgePerp = 0*rightV + 1*upV |
| 1221 | local cut = Instance.new("Part") |
| 1222 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1223 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1224 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1225 | cut.Material = Enum.Material.Glacier |
| 1226 | cut.MaterialVariant = "2022 Inlet" |
| 1227 | cut.Anchored = true; cut.Parent = workspace |
| 1228 | table.insert(angBoxes, cut) |
| 1229 | end |
| 1230 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1231 | if #cuts > 0 then |
| 1232 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1233 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1234 | if ok and result then |
| 1235 | cyl:Destroy() |
| 1236 | result.Name = "Coil_3_Bot"; result.Anchored = true; result.Parent = model |
| 1237 | else |
| 1238 | cyl.Name = "Coil_3_Bot"; cyl.Parent = model |
| 1239 | end |
| 1240 | else |
| 1241 | cyl.Name = "Coil_3_Bot"; cyl.Parent = model |
| 1242 | end |
| 1243 | end |
| 1244 | do |
| 1245 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1246 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1247 | local normalV = upV:Cross(rightV) |
| 1248 | local pos = Vector3.new(1.5, 4.04, 0) |
| 1249 | local cyl = Instance.new("Part") |
| 1250 | cyl.Shape = Enum.PartType.Cylinder |
| 1251 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1252 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1253 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1254 | cyl.Material = Enum.Material.Glacier |
| 1255 | cyl.MaterialVariant = "2022 Inlet" |
| 1256 | cyl.Anchored = true; cyl.Parent = workspace |
| 1257 | local cuts = {} |
| 1258 | local hole = Instance.new("Part") |
| 1259 | hole.Shape = Enum.PartType.Cylinder |
| 1260 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1261 | hole.CFrame = cyl.CFrame |
| 1262 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1263 | hole.Material = Enum.Material.Glacier |
| 1264 | hole.MaterialVariant = "2022 Inlet" |
| 1265 | hole.Anchored = true; hole.Parent = workspace |
| 1266 | table.insert(cuts, hole) |
| 1267 | local angBoxes = {} |
| 1268 | do |
| 1269 | local edgeDir = 1*rightV + 0*upV |
| 1270 | local edgePerp = 0*rightV + 1*upV |
| 1271 | local cut = Instance.new("Part") |
| 1272 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1273 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1274 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1275 | cut.Material = Enum.Material.Glacier |
| 1276 | cut.MaterialVariant = "2022 Inlet" |
| 1277 | cut.Anchored = true; cut.Parent = workspace |
| 1278 | table.insert(angBoxes, cut) |
| 1279 | end |
| 1280 | do |
| 1281 | local edgeDir = -1*rightV + 0*upV |
| 1282 | local edgePerp = 0*rightV + -1*upV |
| 1283 | local cut = Instance.new("Part") |
| 1284 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1285 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1286 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1287 | cut.Material = Enum.Material.Glacier |
| 1288 | cut.MaterialVariant = "2022 Inlet" |
| 1289 | cut.Anchored = true; cut.Parent = workspace |
| 1290 | table.insert(angBoxes, cut) |
| 1291 | end |
| 1292 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1293 | if #cuts > 0 then |
| 1294 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1295 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1296 | if ok and result then |
| 1297 | cyl:Destroy() |
| 1298 | result.Name = "Coil_4_Top"; result.Anchored = true; result.Parent = model |
| 1299 | else |
| 1300 | cyl.Name = "Coil_4_Top"; cyl.Parent = model |
| 1301 | end |
| 1302 | else |
| 1303 | cyl.Name = "Coil_4_Top"; cyl.Parent = model |
| 1304 | end |
| 1305 | end |
| 1306 | do |
| 1307 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1308 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1309 | local normalV = upV:Cross(rightV) |
| 1310 | local pos = Vector3.new(1.5, 4, 0) |
| 1311 | local cyl = Instance.new("Part") |
| 1312 | cyl.Shape = Enum.PartType.Cylinder |
| 1313 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1314 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1315 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1316 | cyl.Material = Enum.Material.Glacier |
| 1317 | cyl.MaterialVariant = "2022 Inlet" |
| 1318 | cyl.Anchored = true; cyl.Parent = workspace |
| 1319 | local cuts = {} |
| 1320 | local hole = Instance.new("Part") |
| 1321 | hole.Shape = Enum.PartType.Cylinder |
| 1322 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1323 | hole.CFrame = cyl.CFrame |
| 1324 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1325 | hole.Material = Enum.Material.Glacier |
| 1326 | hole.MaterialVariant = "2022 Inlet" |
| 1327 | hole.Anchored = true; hole.Parent = workspace |
| 1328 | table.insert(cuts, hole) |
| 1329 | local angBoxes = {} |
| 1330 | do |
| 1331 | local edgeDir = -1*rightV + 0*upV |
| 1332 | local edgePerp = 0*rightV + -1*upV |
| 1333 | local cut = Instance.new("Part") |
| 1334 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1335 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1336 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1337 | cut.Material = Enum.Material.Glacier |
| 1338 | cut.MaterialVariant = "2022 Inlet" |
| 1339 | cut.Anchored = true; cut.Parent = workspace |
| 1340 | table.insert(angBoxes, cut) |
| 1341 | end |
| 1342 | do |
| 1343 | local edgeDir = 1*rightV + 0*upV |
| 1344 | local edgePerp = 0*rightV + 1*upV |
| 1345 | local cut = Instance.new("Part") |
| 1346 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1347 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1348 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1349 | cut.Material = Enum.Material.Glacier |
| 1350 | cut.MaterialVariant = "2022 Inlet" |
| 1351 | cut.Anchored = true; cut.Parent = workspace |
| 1352 | table.insert(angBoxes, cut) |
| 1353 | end |
| 1354 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1355 | if #cuts > 0 then |
| 1356 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1357 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1358 | if ok and result then |
| 1359 | cyl:Destroy() |
| 1360 | result.Name = "Coil_4_Bot"; result.Anchored = true; result.Parent = model |
| 1361 | else |
| 1362 | cyl.Name = "Coil_4_Bot"; cyl.Parent = model |
| 1363 | end |
| 1364 | else |
| 1365 | cyl.Name = "Coil_4_Bot"; cyl.Parent = model |
| 1366 | end |
| 1367 | end |
| 1368 | do |
| 1369 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1370 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1371 | local normalV = upV:Cross(rightV) |
| 1372 | local pos = Vector3.new(3, 4.04, 0) |
| 1373 | local cyl = Instance.new("Part") |
| 1374 | cyl.Shape = Enum.PartType.Cylinder |
| 1375 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1376 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1377 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1378 | cyl.Material = Enum.Material.Glacier |
| 1379 | cyl.MaterialVariant = "2022 Inlet" |
| 1380 | cyl.Anchored = true; cyl.Parent = workspace |
| 1381 | local cuts = {} |
| 1382 | local hole = Instance.new("Part") |
| 1383 | hole.Shape = Enum.PartType.Cylinder |
| 1384 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1385 | hole.CFrame = cyl.CFrame |
| 1386 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1387 | hole.Material = Enum.Material.Glacier |
| 1388 | hole.MaterialVariant = "2022 Inlet" |
| 1389 | hole.Anchored = true; hole.Parent = workspace |
| 1390 | table.insert(cuts, hole) |
| 1391 | local angBoxes = {} |
| 1392 | do |
| 1393 | local edgeDir = 1*rightV + 0*upV |
| 1394 | local edgePerp = 0*rightV + 1*upV |
| 1395 | local cut = Instance.new("Part") |
| 1396 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1397 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1398 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1399 | cut.Material = Enum.Material.Glacier |
| 1400 | cut.MaterialVariant = "2022 Inlet" |
| 1401 | cut.Anchored = true; cut.Parent = workspace |
| 1402 | table.insert(angBoxes, cut) |
| 1403 | end |
| 1404 | do |
| 1405 | local edgeDir = -1*rightV + 0*upV |
| 1406 | local edgePerp = 0*rightV + -1*upV |
| 1407 | local cut = Instance.new("Part") |
| 1408 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1409 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1410 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1411 | cut.Material = Enum.Material.Glacier |
| 1412 | cut.MaterialVariant = "2022 Inlet" |
| 1413 | cut.Anchored = true; cut.Parent = workspace |
| 1414 | table.insert(angBoxes, cut) |
| 1415 | end |
| 1416 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1417 | if #cuts > 0 then |
| 1418 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1419 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1420 | if ok and result then |
| 1421 | cyl:Destroy() |
| 1422 | result.Name = "Coil_5_Top"; result.Anchored = true; result.Parent = model |
| 1423 | else |
| 1424 | cyl.Name = "Coil_5_Top"; cyl.Parent = model |
| 1425 | end |
| 1426 | else |
| 1427 | cyl.Name = "Coil_5_Top"; cyl.Parent = model |
| 1428 | end |
| 1429 | end |
| 1430 | do |
| 1431 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1432 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1433 | local normalV = upV:Cross(rightV) |
| 1434 | local pos = Vector3.new(3, 4, 0) |
| 1435 | local cyl = Instance.new("Part") |
| 1436 | cyl.Shape = Enum.PartType.Cylinder |
| 1437 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1438 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1439 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1440 | cyl.Material = Enum.Material.Glacier |
| 1441 | cyl.MaterialVariant = "2022 Inlet" |
| 1442 | cyl.Anchored = true; cyl.Parent = workspace |
| 1443 | local cuts = {} |
| 1444 | local hole = Instance.new("Part") |
| 1445 | hole.Shape = Enum.PartType.Cylinder |
| 1446 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1447 | hole.CFrame = cyl.CFrame |
| 1448 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1449 | hole.Material = Enum.Material.Glacier |
| 1450 | hole.MaterialVariant = "2022 Inlet" |
| 1451 | hole.Anchored = true; hole.Parent = workspace |
| 1452 | table.insert(cuts, hole) |
| 1453 | local angBoxes = {} |
| 1454 | do |
| 1455 | local edgeDir = -1*rightV + 0*upV |
| 1456 | local edgePerp = 0*rightV + -1*upV |
| 1457 | local cut = Instance.new("Part") |
| 1458 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1459 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1460 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1461 | cut.Material = Enum.Material.Glacier |
| 1462 | cut.MaterialVariant = "2022 Inlet" |
| 1463 | cut.Anchored = true; cut.Parent = workspace |
| 1464 | table.insert(angBoxes, cut) |
| 1465 | end |
| 1466 | do |
| 1467 | local edgeDir = 1*rightV + 0*upV |
| 1468 | local edgePerp = 0*rightV + 1*upV |
| 1469 | local cut = Instance.new("Part") |
| 1470 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1471 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1472 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1473 | cut.Material = Enum.Material.Glacier |
| 1474 | cut.MaterialVariant = "2022 Inlet" |
| 1475 | cut.Anchored = true; cut.Parent = workspace |
| 1476 | table.insert(angBoxes, cut) |
| 1477 | end |
| 1478 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1479 | if #cuts > 0 then |
| 1480 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1481 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1482 | if ok and result then |
| 1483 | cyl:Destroy() |
| 1484 | result.Name = "Coil_5_Bot"; result.Anchored = true; result.Parent = model |
| 1485 | else |
| 1486 | cyl.Name = "Coil_5_Bot"; cyl.Parent = model |
| 1487 | end |
| 1488 | else |
| 1489 | cyl.Name = "Coil_5_Bot"; cyl.Parent = model |
| 1490 | end |
| 1491 | end |
| 1492 | do |
| 1493 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1494 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1495 | local normalV = upV:Cross(rightV) |
| 1496 | local pos = Vector3.new(4.5, 4.04, 0) |
| 1497 | local cyl = Instance.new("Part") |
| 1498 | cyl.Shape = Enum.PartType.Cylinder |
| 1499 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1500 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1501 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1502 | cyl.Material = Enum.Material.Glacier |
| 1503 | cyl.MaterialVariant = "2022 Inlet" |
| 1504 | cyl.Anchored = true; cyl.Parent = workspace |
| 1505 | local cuts = {} |
| 1506 | local hole = Instance.new("Part") |
| 1507 | hole.Shape = Enum.PartType.Cylinder |
| 1508 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1509 | hole.CFrame = cyl.CFrame |
| 1510 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1511 | hole.Material = Enum.Material.Glacier |
| 1512 | hole.MaterialVariant = "2022 Inlet" |
| 1513 | hole.Anchored = true; hole.Parent = workspace |
| 1514 | table.insert(cuts, hole) |
| 1515 | local angBoxes = {} |
| 1516 | do |
| 1517 | local edgeDir = 1*rightV + 0*upV |
| 1518 | local edgePerp = 0*rightV + 1*upV |
| 1519 | local cut = Instance.new("Part") |
| 1520 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1521 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1522 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1523 | cut.Material = Enum.Material.Glacier |
| 1524 | cut.MaterialVariant = "2022 Inlet" |
| 1525 | cut.Anchored = true; cut.Parent = workspace |
| 1526 | table.insert(angBoxes, cut) |
| 1527 | end |
| 1528 | do |
| 1529 | local edgeDir = -1*rightV + 0*upV |
| 1530 | local edgePerp = 0*rightV + -1*upV |
| 1531 | local cut = Instance.new("Part") |
| 1532 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1533 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1534 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1535 | cut.Material = Enum.Material.Glacier |
| 1536 | cut.MaterialVariant = "2022 Inlet" |
| 1537 | cut.Anchored = true; cut.Parent = workspace |
| 1538 | table.insert(angBoxes, cut) |
| 1539 | end |
| 1540 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1541 | if #cuts > 0 then |
| 1542 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1543 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1544 | if ok and result then |
| 1545 | cyl:Destroy() |
| 1546 | result.Name = "Coil_6_Top"; result.Anchored = true; result.Parent = model |
| 1547 | else |
| 1548 | cyl.Name = "Coil_6_Top"; cyl.Parent = model |
| 1549 | end |
| 1550 | else |
| 1551 | cyl.Name = "Coil_6_Top"; cyl.Parent = model |
| 1552 | end |
| 1553 | end |
| 1554 | do |
| 1555 | local rightV = Vector3.new(0.258819,0,0.965926).Unit |
| 1556 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1557 | local normalV = upV:Cross(rightV) |
| 1558 | local pos = Vector3.new(4.5, 4, 0) |
| 1559 | local cyl = Instance.new("Part") |
| 1560 | cyl.Shape = Enum.PartType.Cylinder |
| 1561 | cyl.Size = Vector3.new(0.4, 6.4, 6.4) |
| 1562 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1563 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 1564 | cyl.Material = Enum.Material.Glacier |
| 1565 | cyl.MaterialVariant = "2022 Inlet" |
| 1566 | cyl.Anchored = true; cyl.Parent = workspace |
| 1567 | local cuts = {} |
| 1568 | local hole = Instance.new("Part") |
| 1569 | hole.Shape = Enum.PartType.Cylinder |
| 1570 | hole.Size = Vector3.new(0.6, 5.6, 5.6) |
| 1571 | hole.CFrame = cyl.CFrame |
| 1572 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 1573 | hole.Material = Enum.Material.Glacier |
| 1574 | hole.MaterialVariant = "2022 Inlet" |
| 1575 | hole.Anchored = true; hole.Parent = workspace |
| 1576 | table.insert(cuts, hole) |
| 1577 | local angBoxes = {} |
| 1578 | do |
| 1579 | local edgeDir = -1*rightV + 0*upV |
| 1580 | local edgePerp = 0*rightV + -1*upV |
| 1581 | local cut = Instance.new("Part") |
| 1582 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1583 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1584 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1585 | cut.Material = Enum.Material.Glacier |
| 1586 | cut.MaterialVariant = "2022 Inlet" |
| 1587 | cut.Anchored = true; cut.Parent = workspace |
| 1588 | table.insert(angBoxes, cut) |
| 1589 | end |
| 1590 | do |
| 1591 | local edgeDir = 1*rightV + 0*upV |
| 1592 | local edgePerp = 0*rightV + 1*upV |
| 1593 | local cut = Instance.new("Part") |
| 1594 | cut.Size = Vector3.new(12.8, 0.6, 12.8) |
| 1595 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 1596 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 1597 | cut.Material = Enum.Material.Glacier |
| 1598 | cut.MaterialVariant = "2022 Inlet" |
| 1599 | cut.Anchored = true; cut.Parent = workspace |
| 1600 | table.insert(angBoxes, cut) |
| 1601 | end |
| 1602 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1603 | if #cuts > 0 then |
| 1604 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1605 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1606 | if ok and result then |
| 1607 | cyl:Destroy() |
| 1608 | result.Name = "Coil_6_Bot"; result.Anchored = true; result.Parent = model |
| 1609 | else |
| 1610 | cyl.Name = "Coil_6_Bot"; cyl.Parent = model |
| 1611 | end |
| 1612 | else |
| 1613 | cyl.Name = "Coil_6_Bot"; cyl.Parent = model |
| 1614 | end |
| 1615 | end |
| 1616 | model.PrimaryPart = model:FindFirstChild("CenterPole") |
| 1617 | print("BarbedWireBarricade built: " .. #model:GetChildren() .. " parts") |
Loading comments...