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