Loading model...
by Will Bolster · 4/11/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PotionBottle |
| 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 = "PotionBottle" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright blue"] = "2022 Universal", |
| 25 | ["Cyan"] = "2022 Stud", |
| 26 | ["Dark green"] = "2022 Stud", |
| 27 | ["Dark taupe"] = "2022 Stud", |
| 28 | ["Electric blue"] = "2022 Stud", |
| 29 | ["Lime green"] = "2022 Stud", |
| 30 | ["Mint"] = "2022 Stud", |
| 31 | ["Reddish brown"] = "2022 Small Stud", |
| 32 | ["Toothpaste"] = "2022 Stud", |
| 33 | } |
| 34 | do |
| 35 | local p = Instance.new("Part") |
| 36 | p.Shape = Enum.PartType.Cylinder |
| 37 | p.Name = "BottleBase" |
| 38 | p.Size = Vector3.new(4, 5.96, 5.96) |
| 39 | p.CFrame = CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 40 | p.BrickColor = BrickColor.new("Toothpaste") |
| 41 | p.Material = Enum.Material.Glacier |
| 42 | p.MaterialVariant = "2022 Stud" |
| 43 | p.Anchored = true |
| 44 | p.Parent = model |
| 45 | end |
| 46 | do |
| 47 | local p = Instance.new("Part") |
| 48 | p.Shape = Enum.PartType.Cylinder |
| 49 | p.Name = "BottleBody1" |
| 50 | p.Size = Vector3.new(2, 5, 5) |
| 51 | p.CFrame = CFrame.new(0, 0.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 52 | p.BrickColor = BrickColor.new("Electric blue") |
| 53 | p.Material = Enum.Material.Glacier |
| 54 | p.MaterialVariant = "2022 Stud" |
| 55 | p.Anchored = true |
| 56 | p.Parent = model |
| 57 | end |
| 58 | do |
| 59 | local p = Instance.new("Part") |
| 60 | p.Shape = Enum.PartType.Cylinder |
| 61 | p.Name = "BottleBody2" |
| 62 | p.Size = Vector3.new(3, 6, 6) |
| 63 | p.CFrame = CFrame.new(0, 2.54, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 64 | p.BrickColor = BrickColor.new("Electric blue") |
| 65 | p.Material = Enum.Material.Glacier |
| 66 | p.MaterialVariant = "2022 Stud" |
| 67 | p.Anchored = true |
| 68 | p.Parent = model |
| 69 | end |
| 70 | do |
| 71 | local p = Instance.new("Part") |
| 72 | p.Shape = Enum.PartType.Cylinder |
| 73 | p.Name = "BottleBody3" |
| 74 | p.Size = Vector3.new(2, 5, 5) |
| 75 | p.CFrame = CFrame.new(0, 4.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 76 | p.BrickColor = BrickColor.new("Electric blue") |
| 77 | p.Material = Enum.Material.Glacier |
| 78 | p.MaterialVariant = "2022 Stud" |
| 79 | p.Anchored = true |
| 80 | p.Parent = model |
| 81 | end |
| 82 | do |
| 83 | local p = Instance.new("Part") |
| 84 | p.Shape = Enum.PartType.Cylinder |
| 85 | p.Name = "BottleShoulder" |
| 86 | p.Size = Vector3.new(1.5, 3.5, 3.5) |
| 87 | p.CFrame = CFrame.new(0, 5.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 88 | p.BrickColor = BrickColor.new("Electric blue") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Stud" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Shape = Enum.PartType.Cylinder |
| 97 | p.Name = "NeckBase" |
| 98 | p.Size = Vector3.new(1, 2, 2) |
| 99 | p.CFrame = CFrame.new(0, 7.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 100 | p.BrickColor = BrickColor.new("Bright blue") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Universal" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Shape = Enum.PartType.Cylinder |
| 109 | p.Name = "NeckRing" |
| 110 | p.Size = Vector3.new(0.8, 2.4, 2.4) |
| 111 | p.CFrame = CFrame.new(0, 8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 112 | p.BrickColor = BrickColor.new("Cyan") |
| 113 | p.Material = Enum.Material.Glacier |
| 114 | p.MaterialVariant = "2022 Stud" |
| 115 | p.Anchored = true |
| 116 | p.Parent = model |
| 117 | end |
| 118 | do |
| 119 | local p = Instance.new("Part") |
| 120 | p.Shape = Enum.PartType.Cylinder |
| 121 | p.Name = "NeckTop" |
| 122 | p.Size = Vector3.new(0.5, 2, 2) |
| 123 | p.CFrame = CFrame.new(0, 8.69, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 124 | p.BrickColor = BrickColor.new("Bright blue") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Universal" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Shape = Enum.PartType.Cylinder |
| 133 | p.Name = "CorkBase" |
| 134 | p.Size = Vector3.new(1, 1.8, 1.8) |
| 135 | p.CFrame = CFrame.new(0, 9.32, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 136 | p.BrickColor = BrickColor.new("Dark taupe") |
| 137 | p.Material = Enum.Material.Glacier |
| 138 | p.MaterialVariant = "2022 Stud" |
| 139 | p.Anchored = true |
| 140 | p.Parent = model |
| 141 | end |
| 142 | do |
| 143 | local p = Instance.new("Part") |
| 144 | p.Shape = Enum.PartType.Cylinder |
| 145 | p.Name = "CorkMid" |
| 146 | p.Size = Vector3.new(1, 2.2, 2.2) |
| 147 | p.CFrame = CFrame.new(0, 10.36, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 148 | p.BrickColor = BrickColor.new("Reddish brown") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Small Stud" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Shape = Enum.PartType.Cylinder |
| 157 | p.Name = "CorkTop" |
| 158 | p.Size = Vector3.new(1, 2.6, 2.6) |
| 159 | p.CFrame = CFrame.new(0, 11.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 160 | p.BrickColor = BrickColor.new("Reddish brown") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Small Stud" |
| 163 | p.Anchored = true |
| 164 | p.Parent = model |
| 165 | end |
| 166 | do |
| 167 | local p = Instance.new("Part") |
| 168 | p.Shape = Enum.PartType.Cylinder |
| 169 | p.Name = "Bubble1" |
| 170 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 171 | p.CFrame = CFrame.new(-1, 2, -3.18) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 172 | p.BrickColor = BrickColor.new("Dark green") |
| 173 | p.Material = Enum.Material.Glacier |
| 174 | p.MaterialVariant = "2022 Stud" |
| 175 | p.Anchored = true |
| 176 | p.Parent = model |
| 177 | end |
| 178 | do |
| 179 | local p = Instance.new("Part") |
| 180 | p.Shape = Enum.PartType.Cylinder |
| 181 | p.Name = "Bubble2" |
| 182 | p.Size = Vector3.new(0.5, 0.5, 0.5) |
| 183 | p.CFrame = CFrame.new(1, 2.2, -3.14) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 184 | p.BrickColor = BrickColor.new("Dark green") |
| 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.Shape = Enum.PartType.Cylinder |
| 193 | p.Name = "Bubble3" |
| 194 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 195 | p.CFrame = CFrame.new(-1.8, 3.2, -3.1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 196 | p.BrickColor = BrickColor.new("Dark green") |
| 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 = "Highlight1" |
| 205 | p.Size = Vector3.new(1.5, 0.4, 0.4) |
| 206 | p.CFrame = CFrame.new(-2, 5, -2.2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 207 | p.BrickColor = BrickColor.new("Toothpaste") |
| 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 = "Highlight2" |
| 216 | p.Size = Vector3.new(2, 0.5, 0.5) |
| 217 | p.CFrame = CFrame.new(-2.5, 3, -2.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(70)) |
| 218 | p.BrickColor = BrickColor.new("Toothpaste") |
| 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,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 227 | local normalV = upV:Cross(rightV) |
| 228 | local pos = Vector3.new(0, 3, -2.8) |
| 229 | local cyl = Instance.new("Part") |
| 230 | cyl.Shape = Enum.PartType.Cylinder |
| 231 | cyl.Size = Vector3.new(0.6, 5, 5) |
| 232 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 233 | cyl.BrickColor = BrickColor.new("Lime green") |
| 234 | cyl.Material = Enum.Material.Glacier |
| 235 | cyl.MaterialVariant = "2022 Stud" |
| 236 | cyl.Anchored = true; cyl.Parent = workspace |
| 237 | local cuts = {} |
| 238 | local angBoxes = {} |
| 239 | do |
| 240 | local edgeDir = -1*rightV + 0*upV |
| 241 | local edgePerp = 0*rightV + -1*upV |
| 242 | local cut = Instance.new("Part") |
| 243 | cut.Size = Vector3.new(10, 0.8, 10) |
| 244 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 5 * edgePerp, edgeDir, normalV) |
| 245 | cut.BrickColor = BrickColor.new("Lime green") |
| 246 | cut.Material = Enum.Material.Glacier |
| 247 | cut.MaterialVariant = "2022 Stud" |
| 248 | cut.Anchored = true; cut.Parent = workspace |
| 249 | table.insert(angBoxes, cut) |
| 250 | end |
| 251 | do |
| 252 | local edgeDir = 1*rightV + 0*upV |
| 253 | local edgePerp = 0*rightV + 1*upV |
| 254 | local cut = Instance.new("Part") |
| 255 | cut.Size = Vector3.new(10, 0.8, 10) |
| 256 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 5 * edgePerp, edgeDir, normalV) |
| 257 | cut.BrickColor = BrickColor.new("Lime green") |
| 258 | cut.Material = Enum.Material.Glacier |
| 259 | cut.MaterialVariant = "2022 Stud" |
| 260 | cut.Anchored = true; cut.Parent = workspace |
| 261 | table.insert(angBoxes, cut) |
| 262 | end |
| 263 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 264 | if #cuts > 0 then |
| 265 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 266 | for _, c in ipairs(cuts) do c:Destroy() end |
| 267 | if ok and result then |
| 268 | cyl:Destroy() |
| 269 | result.Name = "LiquidMain"; result.Anchored = true; result.Parent = model |
| 270 | else |
| 271 | cyl.Name = "LiquidMain"; cyl.Parent = model |
| 272 | end |
| 273 | else |
| 274 | cyl.Name = "LiquidMain"; cyl.Parent = model |
| 275 | end |
| 276 | end |
| 277 | do |
| 278 | local rightV = Vector3.new(1,0,0).Unit |
| 279 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 280 | local normalV = upV:Cross(rightV) |
| 281 | local pos = Vector3.new(0, 2.8, -2.9) |
| 282 | local cyl = Instance.new("Part") |
| 283 | cyl.Shape = Enum.PartType.Cylinder |
| 284 | cyl.Size = Vector3.new(0.6, 4.4, 4.4) |
| 285 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 286 | cyl.BrickColor = BrickColor.new("Dark green") |
| 287 | cyl.Material = Enum.Material.Glacier |
| 288 | cyl.MaterialVariant = "2022 Stud" |
| 289 | cyl.Anchored = true; cyl.Parent = workspace |
| 290 | local cuts = {} |
| 291 | local angBoxes = {} |
| 292 | do |
| 293 | local edgeDir = -1*rightV + 0*upV |
| 294 | local edgePerp = 0*rightV + -1*upV |
| 295 | local cut = Instance.new("Part") |
| 296 | cut.Size = Vector3.new(8.8, 0.8, 8.8) |
| 297 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.4 * edgePerp, edgeDir, normalV) |
| 298 | cut.BrickColor = BrickColor.new("Dark green") |
| 299 | cut.Material = Enum.Material.Glacier |
| 300 | cut.MaterialVariant = "2022 Stud" |
| 301 | cut.Anchored = true; cut.Parent = workspace |
| 302 | table.insert(angBoxes, cut) |
| 303 | end |
| 304 | do |
| 305 | local edgeDir = 1*rightV + 0*upV |
| 306 | local edgePerp = 0*rightV + 1*upV |
| 307 | local cut = Instance.new("Part") |
| 308 | cut.Size = Vector3.new(8.8, 0.8, 8.8) |
| 309 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.4 * edgePerp, edgeDir, normalV) |
| 310 | cut.BrickColor = BrickColor.new("Dark green") |
| 311 | cut.Material = Enum.Material.Glacier |
| 312 | cut.MaterialVariant = "2022 Stud" |
| 313 | cut.Anchored = true; cut.Parent = workspace |
| 314 | table.insert(angBoxes, cut) |
| 315 | end |
| 316 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 317 | if #cuts > 0 then |
| 318 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 319 | for _, c in ipairs(cuts) do c:Destroy() end |
| 320 | if ok and result then |
| 321 | cyl:Destroy() |
| 322 | result.Name = "LiquidDark"; result.Anchored = true; result.Parent = model |
| 323 | else |
| 324 | cyl.Name = "LiquidDark"; cyl.Parent = model |
| 325 | end |
| 326 | else |
| 327 | cyl.Name = "LiquidDark"; cyl.Parent = model |
| 328 | end |
| 329 | end |
| 330 | do |
| 331 | local rightV = Vector3.new(1,0,0).Unit |
| 332 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 333 | local normalV = upV:Cross(rightV) |
| 334 | local pos = Vector3.new(0, 3.2, -3.04) |
| 335 | local cyl = Instance.new("Part") |
| 336 | cyl.Shape = Enum.PartType.Cylinder |
| 337 | cyl.Size = Vector3.new(0.4, 5.2, 5.2) |
| 338 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 339 | cyl.BrickColor = BrickColor.new("Mint") |
| 340 | cyl.Material = Enum.Material.Glacier |
| 341 | cyl.MaterialVariant = "2022 Stud" |
| 342 | cyl.Anchored = true; cyl.Parent = workspace |
| 343 | local cuts = {} |
| 344 | local hole = Instance.new("Part") |
| 345 | hole.Shape = Enum.PartType.Cylinder |
| 346 | hole.Size = Vector3.new(0.6, 4, 4) |
| 347 | hole.CFrame = cyl.CFrame |
| 348 | hole.BrickColor = BrickColor.new("Mint") |
| 349 | hole.Material = Enum.Material.Glacier |
| 350 | hole.MaterialVariant = "2022 Stud" |
| 351 | hole.Anchored = true; hole.Parent = workspace |
| 352 | table.insert(cuts, hole) |
| 353 | local angBoxes = {} |
| 354 | do |
| 355 | local edgeDir = -1*rightV + 0*upV |
| 356 | local edgePerp = 0*rightV + -1*upV |
| 357 | local cut = Instance.new("Part") |
| 358 | cut.Size = Vector3.new(10.4, 0.6, 10.4) |
| 359 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 5.2 * edgePerp, edgeDir, normalV) |
| 360 | cut.BrickColor = BrickColor.new("Mint") |
| 361 | cut.Material = Enum.Material.Glacier |
| 362 | cut.MaterialVariant = "2022 Stud" |
| 363 | cut.Anchored = true; cut.Parent = workspace |
| 364 | table.insert(angBoxes, cut) |
| 365 | end |
| 366 | do |
| 367 | local edgeDir = 1*rightV + 0*upV |
| 368 | local edgePerp = 0*rightV + 1*upV |
| 369 | local cut = Instance.new("Part") |
| 370 | cut.Size = Vector3.new(10.4, 0.6, 10.4) |
| 371 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 5.2 * edgePerp, edgeDir, normalV) |
| 372 | cut.BrickColor = BrickColor.new("Mint") |
| 373 | cut.Material = Enum.Material.Glacier |
| 374 | cut.MaterialVariant = "2022 Stud" |
| 375 | cut.Anchored = true; cut.Parent = workspace |
| 376 | table.insert(angBoxes, cut) |
| 377 | end |
| 378 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 379 | if #cuts > 0 then |
| 380 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 381 | for _, c in ipairs(cuts) do c:Destroy() end |
| 382 | if ok and result then |
| 383 | cyl:Destroy() |
| 384 | result.Name = "LiquidLight"; result.Anchored = true; result.Parent = model |
| 385 | else |
| 386 | cyl.Name = "LiquidLight"; cyl.Parent = model |
| 387 | end |
| 388 | else |
| 389 | cyl.Name = "LiquidLight"; cyl.Parent = model |
| 390 | end |
| 391 | end |
| 392 | model.PrimaryPart = model:FindFirstChild("BottleBody2") |
| 393 | print("PotionBottle built: " .. #model:GetChildren() .. " parts") |
Loading comments...