Loading model...
by Matei · 9/9/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: FlaskBackpack |
| 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 = "FlaskBackpack" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Stud", |
| 25 | ["Medium stone grey"] = "2022 Inlet", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Shape = Enum.PartType.Cylinder |
| 30 | p.Name = "SpoutBase" |
| 31 | p.Size = Vector3.new(1, 1.5, 1.5) |
| 32 | p.CFrame = CFrame.new(0, 10.54, -2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 33 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Inlet" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Shape = Enum.PartType.Cylinder |
| 42 | p.Name = "SpoutCap" |
| 43 | p.Size = Vector3.new(0.4, 1.6, 1.6) |
| 44 | p.CFrame = CFrame.new(0, 11.1, -2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 45 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 46 | p.Material = Enum.Material.Glacier |
| 47 | p.MaterialVariant = "2022 Stud" |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Name = "SideSeamL" |
| 54 | p.Size = Vector3.new(0.2, 10, 2.2) |
| 55 | p.CFrame = CFrame.new(-3.5, 5, -1.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(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.Name = "SideSeamR" |
| 65 | p.Size = Vector3.new(0.2, 10, 2.2) |
| 66 | p.CFrame = CFrame.new(3.5, 5, -1.5) * CFrame.Angles(math.rad(0), math.rad(15), math.rad(0)) |
| 67 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 68 | p.Material = Enum.Material.Glacier |
| 69 | p.MaterialVariant = "2022 Stud" |
| 70 | p.Anchored = true |
| 71 | p.Parent = model |
| 72 | end |
| 73 | do |
| 74 | local p = Instance.new("Part") |
| 75 | p.Name = "BottomSeam" |
| 76 | p.Size = Vector3.new(7, 0.2, 2) |
| 77 | p.CFrame = CFrame.new(0, 0, -1.8) |
| 78 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 79 | p.Material = Enum.Material.Glacier |
| 80 | p.MaterialVariant = "2022 Stud" |
| 81 | p.Anchored = true |
| 82 | p.Parent = model |
| 83 | end |
| 84 | do |
| 85 | local rightV = Vector3.new(1,0,0).Unit |
| 86 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 87 | local normalV = upV:Cross(rightV) |
| 88 | local pos = Vector3.new(0, 5, 5) |
| 89 | local cyl = Instance.new("Part") |
| 90 | cyl.Shape = Enum.PartType.Cylinder |
| 91 | cyl.Size = Vector3.new(10, 16, 16) |
| 92 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 93 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 94 | cyl.Material = Enum.Material.Glacier |
| 95 | cyl.MaterialVariant = "2022 Inlet" |
| 96 | cyl.Anchored = true; cyl.Parent = workspace |
| 97 | local cuts = {} |
| 98 | local hole = Instance.new("Part") |
| 99 | hole.Shape = Enum.PartType.Cylinder |
| 100 | hole.Size = Vector3.new(10.2, 12, 12) |
| 101 | hole.CFrame = cyl.CFrame |
| 102 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 103 | hole.Material = Enum.Material.Glacier |
| 104 | hole.MaterialVariant = "2022 Inlet" |
| 105 | hole.Anchored = true; hole.Parent = workspace |
| 106 | table.insert(cuts, hole) |
| 107 | local angBoxes = {} |
| 108 | do |
| 109 | local edgeDir = 0.34202*rightV + 0.939693*upV |
| 110 | local edgePerp = -0.939693*rightV + 0.34202*upV |
| 111 | local cut = Instance.new("Part") |
| 112 | cut.Size = Vector3.new(32, 10.2, 32) |
| 113 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 114 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 115 | cut.Material = Enum.Material.Glacier |
| 116 | cut.MaterialVariant = "2022 Inlet" |
| 117 | cut.Anchored = true; cut.Parent = workspace |
| 118 | table.insert(angBoxes, cut) |
| 119 | end |
| 120 | do |
| 121 | local edgeDir = -0.34202*rightV + 0.939693*upV |
| 122 | local edgePerp = -0.939693*rightV + -0.34202*upV |
| 123 | local cut = Instance.new("Part") |
| 124 | cut.Size = Vector3.new(32, 10.2, 32) |
| 125 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 126 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 127 | cut.Material = Enum.Material.Glacier |
| 128 | cut.MaterialVariant = "2022 Inlet" |
| 129 | cut.Anchored = true; cut.Parent = workspace |
| 130 | table.insert(angBoxes, cut) |
| 131 | end |
| 132 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 133 | if #cuts > 0 then |
| 134 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 135 | for _, c in ipairs(cuts) do c:Destroy() end |
| 136 | if ok and result then |
| 137 | cyl:Destroy() |
| 138 | result.Name = "Body"; result.Anchored = true; result.Parent = model |
| 139 | else |
| 140 | cyl.Name = "Body"; cyl.Parent = model |
| 141 | end |
| 142 | else |
| 143 | cyl.Name = "Body"; cyl.Parent = model |
| 144 | end |
| 145 | end |
| 146 | model.PrimaryPart = model:FindFirstChild("SpoutBase") |
| 147 | print("FlaskBackpack built: " .. #model:GetChildren() .. " parts") |
Loading comments...