Loading model...
by Przemysław Folholc · 6/24/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PlasticBucket |
| 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 = "PlasticBucket" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright blue"] = "2022 Glue", |
| 25 | ["Cyan"] = "2022 Glue", |
| 26 | ["Dark blue"] = "2022 Glue", |
| 27 | ["Medium stone grey"] = "2022 Glue", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "BodyLayer_0" |
| 33 | p.Size = Vector3.new(0.8, 6, 6) |
| 34 | p.CFrame = CFrame.new(0, 0.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Bright blue") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Glue" |
| 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 = "BodyLayer_1" |
| 45 | p.Size = Vector3.new(0.8, 6.27273, 6.27273) |
| 46 | p.CFrame = CFrame.new(0, 1.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 47 | p.BrickColor = BrickColor.new("Bright blue") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Glue" |
| 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 = "BodyLayer_2" |
| 57 | p.Size = Vector3.new(0.8, 6.54545, 6.54545) |
| 58 | p.CFrame = CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 59 | p.BrickColor = BrickColor.new("Bright blue") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Glue" |
| 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 = "BodyLayer_3" |
| 69 | p.Size = Vector3.new(0.8, 6.81818, 6.81818) |
| 70 | p.CFrame = CFrame.new(0, 2.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 71 | p.BrickColor = BrickColor.new("Bright blue") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Glue" |
| 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 = "BodyLayer_4" |
| 81 | p.Size = Vector3.new(0.8, 7.09091, 7.09091) |
| 82 | p.CFrame = CFrame.new(0, 3.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 83 | p.BrickColor = BrickColor.new("Bright blue") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Glue" |
| 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 = "BodyLayer_5" |
| 93 | p.Size = Vector3.new(0.8, 7.36364, 7.36364) |
| 94 | p.CFrame = CFrame.new(0, 4.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 95 | p.BrickColor = BrickColor.new("Bright blue") |
| 96 | p.Material = Enum.Material.Glacier |
| 97 | p.MaterialVariant = "2022 Glue" |
| 98 | p.Anchored = true |
| 99 | p.Parent = model |
| 100 | end |
| 101 | do |
| 102 | local p = Instance.new("Part") |
| 103 | p.Shape = Enum.PartType.Cylinder |
| 104 | p.Name = "BodyLayer_6" |
| 105 | p.Size = Vector3.new(0.8, 7.63636, 7.63636) |
| 106 | p.CFrame = CFrame.new(0, 5.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 107 | p.BrickColor = BrickColor.new("Bright blue") |
| 108 | p.Material = Enum.Material.Glacier |
| 109 | p.MaterialVariant = "2022 Glue" |
| 110 | p.Anchored = true |
| 111 | p.Parent = model |
| 112 | end |
| 113 | do |
| 114 | local p = Instance.new("Part") |
| 115 | p.Shape = Enum.PartType.Cylinder |
| 116 | p.Name = "BodyLayer_7" |
| 117 | p.Size = Vector3.new(0.8, 7.90909, 7.90909) |
| 118 | p.CFrame = CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 119 | p.BrickColor = BrickColor.new("Bright blue") |
| 120 | p.Material = Enum.Material.Glacier |
| 121 | p.MaterialVariant = "2022 Glue" |
| 122 | p.Anchored = true |
| 123 | p.Parent = model |
| 124 | end |
| 125 | do |
| 126 | local p = Instance.new("Part") |
| 127 | p.Shape = Enum.PartType.Cylinder |
| 128 | p.Name = "BodyLayer_8" |
| 129 | p.Size = Vector3.new(0.8, 8.18182, 8.18182) |
| 130 | p.CFrame = CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 131 | p.BrickColor = BrickColor.new("Bright blue") |
| 132 | p.Material = Enum.Material.Glacier |
| 133 | p.MaterialVariant = "2022 Glue" |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("Part") |
| 139 | p.Shape = Enum.PartType.Cylinder |
| 140 | p.Name = "BodyLayer_9" |
| 141 | p.Size = Vector3.new(0.8, 8.45454, 8.45454) |
| 142 | p.CFrame = CFrame.new(0, 7.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 143 | p.BrickColor = BrickColor.new("Bright blue") |
| 144 | p.Material = Enum.Material.Glacier |
| 145 | p.MaterialVariant = "2022 Glue" |
| 146 | p.Anchored = true |
| 147 | p.Parent = model |
| 148 | end |
| 149 | do |
| 150 | local p = Instance.new("Part") |
| 151 | p.Shape = Enum.PartType.Cylinder |
| 152 | p.Name = "InnerLayer_9" |
| 153 | p.Size = Vector3.new(0.8, 8.05454, 8.05454) |
| 154 | p.CFrame = CFrame.new(0, 7.7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 155 | p.BrickColor = BrickColor.new("Dark blue") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Glue" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Shape = Enum.PartType.Cylinder |
| 164 | p.Name = "BodyLayer_10" |
| 165 | p.Size = Vector3.new(0.8, 8.72727, 8.72727) |
| 166 | p.CFrame = CFrame.new(0, 8.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 167 | p.BrickColor = BrickColor.new("Bright blue") |
| 168 | p.Material = Enum.Material.Glacier |
| 169 | p.MaterialVariant = "2022 Glue" |
| 170 | p.Anchored = true |
| 171 | p.Parent = model |
| 172 | end |
| 173 | do |
| 174 | local p = Instance.new("Part") |
| 175 | p.Shape = Enum.PartType.Cylinder |
| 176 | p.Name = "InnerLayer_10" |
| 177 | p.Size = Vector3.new(0.8, 8.32727, 8.32727) |
| 178 | p.CFrame = CFrame.new(0, 8.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 179 | p.BrickColor = BrickColor.new("Dark blue") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Glue" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Shape = Enum.PartType.Cylinder |
| 188 | p.Name = "BodyLayer_11" |
| 189 | p.Size = Vector3.new(0.8, 9, 9) |
| 190 | p.CFrame = CFrame.new(0, 9.16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 191 | p.BrickColor = BrickColor.new("Bright blue") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Glue" |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Shape = Enum.PartType.Cylinder |
| 200 | p.Name = "InnerLayer_11" |
| 201 | p.Size = Vector3.new(0.8, 8.6, 8.6) |
| 202 | p.CFrame = CFrame.new(0, 9.3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 203 | p.BrickColor = BrickColor.new("Dark blue") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Glue" |
| 206 | p.Anchored = true |
| 207 | p.Parent = model |
| 208 | end |
| 209 | do |
| 210 | local p = Instance.new("Part") |
| 211 | p.Shape = Enum.PartType.Cylinder |
| 212 | p.Name = "RimOuter" |
| 213 | p.Size = Vector3.new(1.2, 10.2, 10.2) |
| 214 | p.CFrame = CFrame.new(0, 10.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 215 | p.BrickColor = BrickColor.new("Cyan") |
| 216 | p.Material = Enum.Material.Glacier |
| 217 | p.MaterialVariant = "2022 Glue" |
| 218 | p.Anchored = true |
| 219 | p.Parent = model |
| 220 | end |
| 221 | do |
| 222 | local p = Instance.new("Part") |
| 223 | p.Shape = Enum.PartType.Cylinder |
| 224 | p.Name = "RimHollow" |
| 225 | p.Size = Vector3.new(1.2, 9.4, 9.4) |
| 226 | p.CFrame = CFrame.new(0, 10.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 227 | p.BrickColor = BrickColor.new("Dark blue") |
| 228 | p.Material = Enum.Material.Glacier |
| 229 | p.MaterialVariant = "2022 Glue" |
| 230 | p.Anchored = true |
| 231 | p.Parent = model |
| 232 | end |
| 233 | do |
| 234 | local p = Instance.new("Part") |
| 235 | p.Shape = Enum.PartType.Cylinder |
| 236 | p.Name = "HandlePivot_L" |
| 237 | p.Size = Vector3.new(0.6, 0.8, 0.8) |
| 238 | p.CFrame = CFrame.new(4.6, 8.6, 0) |
| 239 | p.BrickColor = BrickColor.new("Bright blue") |
| 240 | p.Material = Enum.Material.Glacier |
| 241 | p.MaterialVariant = "2022 Glue" |
| 242 | p.Anchored = true |
| 243 | p.Parent = model |
| 244 | end |
| 245 | do |
| 246 | local p = Instance.new("Part") |
| 247 | p.Shape = Enum.PartType.Cylinder |
| 248 | p.Name = "HandlePivot_R" |
| 249 | p.Size = Vector3.new(0.6, 0.8, 0.8) |
| 250 | p.CFrame = CFrame.new(-4.6, 8.6, 0) |
| 251 | p.BrickColor = BrickColor.new("Bright blue") |
| 252 | p.Material = Enum.Material.Glacier |
| 253 | p.MaterialVariant = "2022 Glue" |
| 254 | p.Anchored = true |
| 255 | p.Parent = model |
| 256 | end |
| 257 | do |
| 258 | local p = Instance.new("Part") |
| 259 | p.Shape = Enum.PartType.Ball |
| 260 | p.Name = "HandleCap_L" |
| 261 | p.Size = Vector3.new(0.76, 0.76, 0.76) |
| 262 | p.CFrame = CFrame.new(4.6, 8.6, 0) |
| 263 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 264 | p.Material = Enum.Material.Glacier |
| 265 | p.MaterialVariant = "2022 Glue" |
| 266 | p.Anchored = true |
| 267 | p.Parent = model |
| 268 | end |
| 269 | do |
| 270 | local p = Instance.new("Part") |
| 271 | p.Shape = Enum.PartType.Ball |
| 272 | p.Name = "HandleCap_R" |
| 273 | p.Size = Vector3.new(0.76, 0.76, 0.76) |
| 274 | p.CFrame = CFrame.new(-4.6, 8.6, 0) |
| 275 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 276 | p.Material = Enum.Material.Glacier |
| 277 | p.MaterialVariant = "2022 Glue" |
| 278 | p.Anchored = true |
| 279 | p.Parent = model |
| 280 | end |
| 281 | do |
| 282 | local p = Instance.new("Part") |
| 283 | p.Shape = Enum.PartType.Cylinder |
| 284 | p.Name = "BasePlate" |
| 285 | p.Size = Vector3.new(0.2, 5.8, 5.8) |
| 286 | p.CFrame = CFrame.new(0, 0.06, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 287 | p.BrickColor = BrickColor.new("Bright blue") |
| 288 | p.Material = Enum.Material.Glacier |
| 289 | p.MaterialVariant = "2022 Glue" |
| 290 | p.Anchored = true |
| 291 | p.Parent = model |
| 292 | end |
| 293 | do |
| 294 | local rightV = Vector3.new(1,0,0).Unit |
| 295 | local upV = (Vector3.new(0,0.939693,-0.34202) - Vector3.new(0,0.939693,-0.34202):Dot(rightV)*rightV).Unit |
| 296 | local normalV = upV:Cross(rightV) |
| 297 | local pos = Vector3.new(0, 8.6, 0) |
| 298 | local cyl = Instance.new("Part") |
| 299 | cyl.Shape = Enum.PartType.Cylinder |
| 300 | cyl.Size = Vector3.new(0.6, 9.8, 9.8) |
| 301 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 302 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 303 | cyl.Material = Enum.Material.Glacier |
| 304 | cyl.MaterialVariant = "2022 Glue" |
| 305 | cyl.Anchored = true; cyl.Parent = workspace |
| 306 | local cuts = {} |
| 307 | local hole = Instance.new("Part") |
| 308 | hole.Shape = Enum.PartType.Cylinder |
| 309 | hole.Size = Vector3.new(0.8, 8.2, 8.2) |
| 310 | hole.CFrame = cyl.CFrame |
| 311 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 312 | hole.Material = Enum.Material.Glacier |
| 313 | hole.MaterialVariant = "2022 Glue" |
| 314 | hole.Anchored = true; hole.Parent = workspace |
| 315 | table.insert(cuts, hole) |
| 316 | local angBoxes = {} |
| 317 | do |
| 318 | local edgeDir = 1*rightV + 0*upV |
| 319 | local edgePerp = 0*rightV + 1*upV |
| 320 | local cut = Instance.new("Part") |
| 321 | cut.Size = Vector3.new(19.6, 0.8, 19.6) |
| 322 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9.8 * edgePerp, edgeDir, normalV) |
| 323 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 324 | cut.Material = Enum.Material.Glacier |
| 325 | cut.MaterialVariant = "2022 Glue" |
| 326 | cut.Anchored = true; cut.Parent = workspace |
| 327 | table.insert(angBoxes, cut) |
| 328 | end |
| 329 | do |
| 330 | local edgeDir = -1*rightV + 0*upV |
| 331 | local edgePerp = 0*rightV + -1*upV |
| 332 | local cut = Instance.new("Part") |
| 333 | cut.Size = Vector3.new(19.6, 0.8, 19.6) |
| 334 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9.8 * edgePerp, edgeDir, normalV) |
| 335 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 336 | cut.Material = Enum.Material.Glacier |
| 337 | cut.MaterialVariant = "2022 Glue" |
| 338 | cut.Anchored = true; cut.Parent = workspace |
| 339 | table.insert(angBoxes, cut) |
| 340 | end |
| 341 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 342 | if #cuts > 0 then |
| 343 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 344 | for _, c in ipairs(cuts) do c:Destroy() end |
| 345 | if ok and result then |
| 346 | cyl:Destroy() |
| 347 | result.Name = "BucketHandle"; result.Anchored = true; result.Parent = model |
| 348 | else |
| 349 | cyl.Name = "BucketHandle"; cyl.Parent = model |
| 350 | end |
| 351 | else |
| 352 | cyl.Name = "BucketHandle"; cyl.Parent = model |
| 353 | end |
| 354 | end |
| 355 | model.PrimaryPart = model:FindFirstChild("BodyLayer_0") |
| 356 | print("PlasticBucket built: " .. #model:GetChildren() .. " parts") |
Loading comments...