Loading model...
by Prime AirGhost · 9/21/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PropaneTank |
| 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 = "PropaneTank" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Gold"] = "2022 Stud", |
| 26 | ["Institutional white"] = "2022 Stud", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "CenterBody" |
| 33 | p.Size = Vector3.new(8, 12, 12) |
| 34 | p.CFrame = CFrame.new(0, 11, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Institutional white") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Shape = Enum.PartType.Cylinder |
| 44 | p.Name = "WeldSeam" |
| 45 | p.Size = Vector3.new(0.2, 12.12, 12.12) |
| 46 | p.CFrame = CFrame.new(0, 11, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 47 | p.BrickColor = BrickColor.new("Institutional white") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Shape = Enum.PartType.Cylinder |
| 56 | p.Name = "ValveBase" |
| 57 | p.Size = Vector3.new(1, 1.2, 1.2) |
| 58 | p.CFrame = CFrame.new(0, 21, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 59 | p.BrickColor = BrickColor.new("Gold") |
| 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 = "ValvePipe" |
| 69 | p.Size = Vector3.new(2, 0.8, 0.8) |
| 70 | p.CFrame = CFrame.new(0, 22, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 71 | p.BrickColor = BrickColor.new("Gold") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Stud" |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Shape = Enum.PartType.Cylinder |
| 80 | p.Name = "ValveOut" |
| 81 | p.Size = Vector3.new(2, 0.6, 0.6) |
| 82 | p.CFrame = CFrame.new(0, 22, 0.96) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 83 | p.BrickColor = BrickColor.new("Gold") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Shape = Enum.PartType.Cylinder |
| 92 | p.Name = "ValveKnob" |
| 93 | p.Size = Vector3.new(0.4, 1.6, 1.6) |
| 94 | p.CFrame = CFrame.new(0, 22, 2.2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 95 | p.BrickColor = BrickColor.new("Really black") |
| 96 | p.Material = Enum.Material.Glacier |
| 97 | p.MaterialVariant = "2022 Universal" |
| 98 | p.Anchored = true |
| 99 | p.Parent = model |
| 100 | end |
| 101 | do |
| 102 | local p = Instance.new("Part") |
| 103 | p.Name = "KnobGrip1" |
| 104 | p.Size = Vector3.new(1.8, 0.4, 0.4) |
| 105 | p.CFrame = CFrame.new(0, 22, 2.34) |
| 106 | p.BrickColor = BrickColor.new("Really black") |
| 107 | p.Material = Enum.Material.Glacier |
| 108 | p.MaterialVariant = "2022 Universal" |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Name = "KnobGrip2" |
| 115 | p.Size = Vector3.new(0.4, 1.8, 0.4) |
| 116 | p.CFrame = CFrame.new(0, 22, 2.3) |
| 117 | p.BrickColor = BrickColor.new("Really black") |
| 118 | p.Material = Enum.Material.Glacier |
| 119 | p.MaterialVariant = "2022 Universal" |
| 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 = "WheelStem" |
| 127 | p.Size = Vector3.new(0.6, 0.4, 0.4) |
| 128 | p.CFrame = CFrame.new(0, 23.34, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 129 | p.BrickColor = BrickColor.new("Gold") |
| 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.Shape = Enum.PartType.Cylinder |
| 138 | p.Name = "WheelCenter" |
| 139 | p.Size = Vector3.new(0.2, 1.2, 1.2) |
| 140 | p.CFrame = CFrame.new(0, 23.66, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 141 | p.BrickColor = BrickColor.new("Gold") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Stud" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Name = "WheelSpoke_0" |
| 150 | p.Size = Vector3.new(0.8, 0.2, 0.4) |
| 151 | p.CFrame = CFrame.new(0.8, 23.74, 0) |
| 152 | p.BrickColor = BrickColor.new("Gold") |
| 153 | p.Material = Enum.Material.Glacier |
| 154 | p.MaterialVariant = "2022 Stud" |
| 155 | p.Anchored = true |
| 156 | p.Parent = model |
| 157 | end |
| 158 | do |
| 159 | local p = Instance.new("Part") |
| 160 | p.Name = "WheelSpoke_1" |
| 161 | p.Size = Vector3.new(0.8, 0.2, 0.4) |
| 162 | p.CFrame = CFrame.new(0.247214, 23.74, 0.760845) * CFrame.Angles(math.rad(0), math.rad(-72), math.rad(0)) |
| 163 | p.BrickColor = BrickColor.new("Gold") |
| 164 | p.Material = Enum.Material.Glacier |
| 165 | p.MaterialVariant = "2022 Stud" |
| 166 | p.Anchored = true |
| 167 | p.Parent = model |
| 168 | end |
| 169 | do |
| 170 | local p = Instance.new("Part") |
| 171 | p.Name = "WheelSpoke_2" |
| 172 | p.Size = Vector3.new(0.8, 0.2, 0.4) |
| 173 | p.CFrame = CFrame.new(-0.647214, 23.62, 0.470228) * CFrame.Angles(math.rad(0), math.rad(-144), math.rad(0)) |
| 174 | p.BrickColor = BrickColor.new("Gold") |
| 175 | p.Material = Enum.Material.Glacier |
| 176 | p.MaterialVariant = "2022 Stud" |
| 177 | p.Anchored = true |
| 178 | p.Parent = model |
| 179 | end |
| 180 | do |
| 181 | local p = Instance.new("Part") |
| 182 | p.Name = "WheelSpoke_3" |
| 183 | p.Size = Vector3.new(0.8, 0.2, 0.4) |
| 184 | p.CFrame = CFrame.new(-0.647214, 23.62, -0.470228) * CFrame.Angles(math.rad(0), math.rad(-216), math.rad(0)) |
| 185 | p.BrickColor = BrickColor.new("Gold") |
| 186 | p.Material = Enum.Material.Glacier |
| 187 | p.MaterialVariant = "2022 Stud" |
| 188 | p.Anchored = true |
| 189 | p.Parent = model |
| 190 | end |
| 191 | do |
| 192 | local p = Instance.new("Part") |
| 193 | p.Name = "WheelSpoke_4" |
| 194 | p.Size = Vector3.new(0.8, 0.2, 0.4) |
| 195 | p.CFrame = CFrame.new(0.247214, 23.74, -0.760845) * CFrame.Angles(math.rad(0), math.rad(-288), math.rad(0)) |
| 196 | p.BrickColor = BrickColor.new("Gold") |
| 197 | p.Material = Enum.Material.Glacier |
| 198 | p.MaterialVariant = "2022 Stud" |
| 199 | p.Anchored = true |
| 200 | p.Parent = model |
| 201 | end |
| 202 | do |
| 203 | local p = Instance.new("Part") |
| 204 | p.Name = "LabelWhite" |
| 205 | p.Size = Vector3.new(0.1, 2.5, 2.5) |
| 206 | p.CFrame = CFrame.new(6.05, 12, 0) |
| 207 | p.BrickColor = BrickColor.new("Institutional white") |
| 208 | p.Material = Enum.Material.Glacier |
| 209 | p.MaterialVariant = "2022 Stud" |
| 210 | p.Anchored = true |
| 211 | p.Parent = model |
| 212 | end |
| 213 | do |
| 214 | local p = Instance.new("Part") |
| 215 | p.Name = "LabelRed" |
| 216 | p.Size = Vector3.new(0.1, 1.8, 1.8) |
| 217 | p.CFrame = CFrame.new(6.11, 12, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 218 | p.BrickColor = BrickColor.new("Bright red") |
| 219 | p.Material = Enum.Material.Glacier |
| 220 | p.MaterialVariant = "2022 Stud" |
| 221 | p.Anchored = true |
| 222 | p.Parent = model |
| 223 | end |
| 224 | do |
| 225 | local rightV = Vector3.new(1,0,0).Unit |
| 226 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 227 | local normalV = upV:Cross(rightV) |
| 228 | local pos = Vector3.new(0, 0.5, 0) |
| 229 | local cyl = Instance.new("Part") |
| 230 | cyl.Shape = Enum.PartType.Cylinder |
| 231 | cyl.Size = Vector3.new(1, 7.8, 7.8) |
| 232 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 233 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 234 | cyl.Material = Enum.Material.Glacier |
| 235 | cyl.MaterialVariant = "2022 Stud" |
| 236 | cyl.Anchored = true; cyl.Parent = workspace |
| 237 | local cuts = {} |
| 238 | local hole = Instance.new("Part") |
| 239 | hole.Shape = Enum.PartType.Cylinder |
| 240 | hole.Size = Vector3.new(1.2, 7.2, 7.2) |
| 241 | hole.CFrame = cyl.CFrame |
| 242 | hole.BrickColor = BrickColor.new("Institutional white") |
| 243 | hole.Material = Enum.Material.Glacier |
| 244 | hole.MaterialVariant = "2022 Stud" |
| 245 | hole.Anchored = true; hole.Parent = workspace |
| 246 | table.insert(cuts, hole) |
| 247 | if #cuts > 0 then |
| 248 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 249 | for _, c in ipairs(cuts) do c:Destroy() end |
| 250 | if ok and result then |
| 251 | cyl:Destroy() |
| 252 | result.Name = "BaseRing"; result.Anchored = true; result.Parent = model |
| 253 | else |
| 254 | cyl.Name = "BaseRing"; cyl.Parent = model |
| 255 | end |
| 256 | else |
| 257 | cyl.Name = "BaseRing"; cyl.Parent = model |
| 258 | end |
| 259 | end |
| 260 | do |
| 261 | local rightV = Vector3.new(1,0,0).Unit |
| 262 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 263 | local normalV = upV:Cross(rightV) |
| 264 | local pos = Vector3.new(0, 22, 0) |
| 265 | local cyl = Instance.new("Part") |
| 266 | cyl.Shape = Enum.PartType.Cylinder |
| 267 | cyl.Size = Vector3.new(4, 7, 7) |
| 268 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 269 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 270 | cyl.Material = Enum.Material.Glacier |
| 271 | cyl.MaterialVariant = "2022 Stud" |
| 272 | cyl.Anchored = true; cyl.Parent = workspace |
| 273 | local cuts = {} |
| 274 | local hole = Instance.new("Part") |
| 275 | hole.Shape = Enum.PartType.Cylinder |
| 276 | hole.Size = Vector3.new(4.2, 6.6, 6.6) |
| 277 | hole.CFrame = cyl.CFrame |
| 278 | hole.BrickColor = BrickColor.new("Institutional white") |
| 279 | hole.Material = Enum.Material.Glacier |
| 280 | hole.MaterialVariant = "2022 Stud" |
| 281 | hole.Anchored = true; hole.Parent = workspace |
| 282 | table.insert(cuts, hole) |
| 283 | local angBoxes = {} |
| 284 | do |
| 285 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 286 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 287 | local cut = Instance.new("Part") |
| 288 | cut.Size = Vector3.new(14, 4.2, 14) |
| 289 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7 * edgePerp, edgeDir, normalV) |
| 290 | cut.BrickColor = BrickColor.new("Institutional white") |
| 291 | cut.Material = Enum.Material.Glacier |
| 292 | cut.MaterialVariant = "2022 Stud" |
| 293 | cut.Anchored = true; cut.Parent = workspace |
| 294 | table.insert(angBoxes, cut) |
| 295 | end |
| 296 | do |
| 297 | local edgeDir = 0.707107*rightV + -0.707107*upV |
| 298 | local edgePerp = 0.707107*rightV + 0.707107*upV |
| 299 | local cut = Instance.new("Part") |
| 300 | cut.Size = Vector3.new(14, 4.2, 14) |
| 301 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7 * edgePerp, edgeDir, normalV) |
| 302 | cut.BrickColor = BrickColor.new("Institutional white") |
| 303 | cut.Material = Enum.Material.Glacier |
| 304 | cut.MaterialVariant = "2022 Stud" |
| 305 | cut.Anchored = true; cut.Parent = workspace |
| 306 | table.insert(angBoxes, cut) |
| 307 | end |
| 308 | do |
| 309 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 310 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 311 | w.Anchored = true; w.Parent = workspace |
| 312 | table.insert(cuts, w) |
| 313 | end |
| 314 | if #cuts > 0 then |
| 315 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 316 | for _, c in ipairs(cuts) do c:Destroy() end |
| 317 | if ok and result then |
| 318 | cyl:Destroy() |
| 319 | result.Name = "CollarBody"; result.Anchored = true; result.Parent = model |
| 320 | else |
| 321 | cyl.Name = "CollarBody"; cyl.Parent = model |
| 322 | end |
| 323 | else |
| 324 | cyl.Name = "CollarBody"; cyl.Parent = model |
| 325 | end |
| 326 | end |
| 327 | do |
| 328 | local rightV = Vector3.new(1,0,0).Unit |
| 329 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 330 | local normalV = upV:Cross(rightV) |
| 331 | local pos = Vector3.new(0.056569, 24, 0) |
| 332 | local cyl = Instance.new("Part") |
| 333 | cyl.Shape = Enum.PartType.Cylinder |
| 334 | cyl.Size = Vector3.new(0.4, 7.2, 7.2) |
| 335 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 336 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 337 | cyl.Material = Enum.Material.Glacier |
| 338 | cyl.MaterialVariant = "2022 Stud" |
| 339 | cyl.Anchored = true; cyl.Parent = workspace |
| 340 | local cuts = {} |
| 341 | local hole = Instance.new("Part") |
| 342 | hole.Shape = Enum.PartType.Cylinder |
| 343 | hole.Size = Vector3.new(0.6, 6.4, 6.4) |
| 344 | hole.CFrame = cyl.CFrame |
| 345 | hole.BrickColor = BrickColor.new("Institutional white") |
| 346 | hole.Material = Enum.Material.Glacier |
| 347 | hole.MaterialVariant = "2022 Stud" |
| 348 | hole.Anchored = true; hole.Parent = workspace |
| 349 | table.insert(cuts, hole) |
| 350 | local angBoxes = {} |
| 351 | do |
| 352 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 353 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 354 | local cut = Instance.new("Part") |
| 355 | cut.Size = Vector3.new(14.4, 0.6, 14.4) |
| 356 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7.2 * edgePerp, edgeDir, normalV) |
| 357 | cut.BrickColor = BrickColor.new("Institutional white") |
| 358 | cut.Material = Enum.Material.Glacier |
| 359 | cut.MaterialVariant = "2022 Stud" |
| 360 | cut.Anchored = true; cut.Parent = workspace |
| 361 | table.insert(angBoxes, cut) |
| 362 | end |
| 363 | do |
| 364 | local edgeDir = 0.707107*rightV + -0.707107*upV |
| 365 | local edgePerp = 0.707107*rightV + 0.707107*upV |
| 366 | local cut = Instance.new("Part") |
| 367 | cut.Size = Vector3.new(14.4, 0.6, 14.4) |
| 368 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7.2 * edgePerp, edgeDir, normalV) |
| 369 | cut.BrickColor = BrickColor.new("Institutional white") |
| 370 | cut.Material = Enum.Material.Glacier |
| 371 | cut.MaterialVariant = "2022 Stud" |
| 372 | cut.Anchored = true; cut.Parent = workspace |
| 373 | table.insert(angBoxes, cut) |
| 374 | end |
| 375 | do |
| 376 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 377 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 378 | w.Anchored = true; w.Parent = workspace |
| 379 | table.insert(cuts, w) |
| 380 | end |
| 381 | if #cuts > 0 then |
| 382 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 383 | for _, c in ipairs(cuts) do c:Destroy() end |
| 384 | if ok and result then |
| 385 | cyl:Destroy() |
| 386 | result.Name = "CollarRim"; result.Anchored = true; result.Parent = model |
| 387 | else |
| 388 | cyl.Name = "CollarRim"; cyl.Parent = model |
| 389 | end |
| 390 | else |
| 391 | cyl.Name = "CollarRim"; cyl.Parent = model |
| 392 | end |
| 393 | end |
| 394 | do |
| 395 | local upV = Vector3.new(0,1,0).Unit |
| 396 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 397 | local forwardV = rightV:Cross(upV) |
| 398 | local pos = Vector3.new(0, 6.96, 0) |
| 399 | local ball = Instance.new("Part") |
| 400 | ball.Shape = Enum.PartType.Ball |
| 401 | ball.Size = Vector3.new(12, 12, 12) |
| 402 | ball.CFrame = CFrame.new(pos) |
| 403 | ball.BrickColor = BrickColor.new("Institutional white") |
| 404 | ball.Material = Enum.Material.Glacier |
| 405 | ball.MaterialVariant = "2022 Stud" |
| 406 | ball.Anchored = true; ball.Parent = workspace |
| 407 | local cuts = {} |
| 408 | do |
| 409 | local h = 0 |
| 410 | local cut = Instance.new("Part") |
| 411 | cut.Size = Vector3.new(24, 24, 24) |
| 412 | cut.CFrame = CFrame.fromMatrix(pos + upV*(12), rightV, upV) |
| 413 | cut.BrickColor = BrickColor.new("Institutional white") |
| 414 | cut.Material = Enum.Material.Glacier |
| 415 | cut.MaterialVariant = "2022 Stud" |
| 416 | cut.Anchored = true; cut.Parent = workspace |
| 417 | table.insert(cuts, cut) |
| 418 | end |
| 419 | if #cuts > 0 then |
| 420 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 421 | for _, c in ipairs(cuts) do c:Destroy() end |
| 422 | if ok and result then |
| 423 | ball:Destroy() |
| 424 | result.Name = "LowerDome"; result.Anchored = true; result.Parent = model |
| 425 | else |
| 426 | ball.Name = "LowerDome"; ball.Parent = model |
| 427 | end |
| 428 | else |
| 429 | ball.Name = "LowerDome"; ball.Parent = model |
| 430 | end |
| 431 | end |
| 432 | do |
| 433 | local upV = Vector3.new(0,1,0).Unit |
| 434 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 435 | local forwardV = rightV:Cross(upV) |
| 436 | local pos = Vector3.new(0, 15.04, 0) |
| 437 | local ball = Instance.new("Part") |
| 438 | ball.Shape = Enum.PartType.Ball |
| 439 | ball.Size = Vector3.new(12, 12, 12) |
| 440 | ball.CFrame = CFrame.new(pos) |
| 441 | ball.BrickColor = BrickColor.new("Institutional white") |
| 442 | ball.Material = Enum.Material.Glacier |
| 443 | ball.MaterialVariant = "2022 Stud" |
| 444 | ball.Anchored = true; ball.Parent = workspace |
| 445 | local cuts = {} |
| 446 | do |
| 447 | local h = 0 |
| 448 | local cut = Instance.new("Part") |
| 449 | cut.Size = Vector3.new(24, 24, 24) |
| 450 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-12), rightV, upV) |
| 451 | cut.BrickColor = BrickColor.new("Institutional white") |
| 452 | cut.Material = Enum.Material.Glacier |
| 453 | cut.MaterialVariant = "2022 Stud" |
| 454 | cut.Anchored = true; cut.Parent = workspace |
| 455 | table.insert(cuts, cut) |
| 456 | end |
| 457 | if #cuts > 0 then |
| 458 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 459 | for _, c in ipairs(cuts) do c:Destroy() end |
| 460 | if ok and result then |
| 461 | ball:Destroy() |
| 462 | result.Name = "UpperDome"; result.Anchored = true; result.Parent = model |
| 463 | else |
| 464 | ball.Name = "UpperDome"; ball.Parent = model |
| 465 | end |
| 466 | else |
| 467 | ball.Name = "UpperDome"; ball.Parent = model |
| 468 | end |
| 469 | end |
| 470 | model.PrimaryPart = model:FindFirstChild("CenterBody") |
| 471 | print("PropaneTank built: " .. #model:GetChildren() .. " parts") |
Loading comments...