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 Universal", |
| 25 | ["Cyan"] = "2022 Stud", |
| 26 | ["Dark blue"] = "2022 Inlet", |
| 27 | ["Ghost grey"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "BodyStep_0" |
| 33 | p.Size = Vector3.new(0.716667, 5, 5) |
| 34 | p.CFrame = CFrame.new(0, 0.333333, 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 Universal" |
| 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 = "BodyStep_1" |
| 45 | p.Size = Vector3.new(0.716667, 5.18182, 5.18182) |
| 46 | p.CFrame = CFrame.new(0, 1, 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 Universal" |
| 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 = "BodyStep_2" |
| 57 | p.Size = Vector3.new(0.716667, 5.36364, 5.36364) |
| 58 | p.CFrame = CFrame.new(0, 1.66667, 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 Universal" |
| 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 = "BodyStep_3" |
| 69 | p.Size = Vector3.new(0.716667, 5.54545, 5.54545) |
| 70 | p.CFrame = CFrame.new(0, 2.33333, 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 Universal" |
| 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 = "BodyStep_4" |
| 81 | p.Size = Vector3.new(0.716667, 5.72727, 5.72727) |
| 82 | p.CFrame = CFrame.new(0, 3, 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 Universal" |
| 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 = "BodyStep_5" |
| 93 | p.Size = Vector3.new(0.716667, 5.90909, 5.90909) |
| 94 | p.CFrame = CFrame.new(0, 3.66667, 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 Universal" |
| 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 = "BodyStep_6" |
| 105 | p.Size = Vector3.new(0.716667, 6.09091, 6.09091) |
| 106 | p.CFrame = CFrame.new(0, 4.33333, 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 Universal" |
| 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 = "BodyStep_7" |
| 117 | p.Size = Vector3.new(0.716667, 6.27273, 6.27273) |
| 118 | p.CFrame = CFrame.new(0, 5, 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 Universal" |
| 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 = "BodyStep_8" |
| 129 | p.Size = Vector3.new(0.716667, 6.45455, 6.45455) |
| 130 | p.CFrame = CFrame.new(0, 5.66667, 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 Universal" |
| 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 = "BodyStep_9" |
| 141 | p.Size = Vector3.new(0.716667, 6.63636, 6.63636) |
| 142 | p.CFrame = CFrame.new(0, 6.33333, 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 Universal" |
| 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 = "BodyStep_10" |
| 153 | p.Size = Vector3.new(0.716667, 6.81818, 6.81818) |
| 154 | p.CFrame = CFrame.new(0, 7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 155 | p.BrickColor = BrickColor.new("Bright blue") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Universal" |
| 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 = "BodyStep_11" |
| 165 | p.Size = Vector3.new(0.716667, 7, 7) |
| 166 | p.CFrame = CFrame.new(0, 7.66667, 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 Universal" |
| 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 = "TopRim" |
| 177 | p.Size = Vector3.new(1.2, 7.6, 7.6) |
| 178 | p.CFrame = CFrame.new(0, 8.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 179 | p.BrickColor = BrickColor.new("Cyan") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Stud" |
| 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 = "JointLeft" |
| 189 | p.Size = Vector3.new(0.4, 1.2, 1.2) |
| 190 | p.CFrame = CFrame.new(-3.2, 6.5, 0) |
| 191 | p.BrickColor = BrickColor.new("Cyan") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Stud" |
| 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 = "JointRight" |
| 201 | p.Size = Vector3.new(0.4, 1.2, 1.2) |
| 202 | p.CFrame = CFrame.new(3.2, 6.5, 0) |
| 203 | p.BrickColor = BrickColor.new("Cyan") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Stud" |
| 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 = "InteriorFill" |
| 213 | p.Size = Vector3.new(0.2, 6, 6) |
| 214 | p.CFrame = CFrame.new(0, 7.46, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 215 | p.BrickColor = BrickColor.new("Dark blue") |
| 216 | p.Material = Enum.Material.Glacier |
| 217 | p.MaterialVariant = "2022 Inlet" |
| 218 | p.Anchored = true |
| 219 | p.Parent = model |
| 220 | end |
| 221 | do |
| 222 | local rightV = Vector3.new(1,0,0).Unit |
| 223 | local upV = (Vector3.new(0,-0.6,-0.8) - Vector3.new(0,-0.6,-0.8):Dot(rightV)*rightV).Unit |
| 224 | local normalV = upV:Cross(rightV) |
| 225 | local pos = Vector3.new(0, 6.5, 0) |
| 226 | local cyl = Instance.new("Part") |
| 227 | cyl.Shape = Enum.PartType.Cylinder |
| 228 | cyl.Size = Vector3.new(0.5, 6.4, 6.4) |
| 229 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 230 | cyl.BrickColor = BrickColor.new("Ghost grey") |
| 231 | cyl.Material = Enum.Material.Glacier |
| 232 | cyl.MaterialVariant = "2022 Stud" |
| 233 | cyl.Anchored = true; cyl.Parent = workspace |
| 234 | local cuts = {} |
| 235 | local hole = Instance.new("Part") |
| 236 | hole.Shape = Enum.PartType.Cylinder |
| 237 | hole.Size = Vector3.new(0.7, 5.4, 5.4) |
| 238 | hole.CFrame = cyl.CFrame |
| 239 | hole.BrickColor = BrickColor.new("Ghost grey") |
| 240 | hole.Material = Enum.Material.Glacier |
| 241 | hole.MaterialVariant = "2022 Stud" |
| 242 | hole.Anchored = true; hole.Parent = workspace |
| 243 | table.insert(cuts, hole) |
| 244 | local angBoxes = {} |
| 245 | do |
| 246 | local edgeDir = 1*rightV + 0*upV |
| 247 | local edgePerp = 0*rightV + 1*upV |
| 248 | local cut = Instance.new("Part") |
| 249 | cut.Size = Vector3.new(12.8, 0.7, 12.8) |
| 250 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6.4 * edgePerp, edgeDir, normalV) |
| 251 | cut.BrickColor = BrickColor.new("Ghost grey") |
| 252 | cut.Material = Enum.Material.Glacier |
| 253 | cut.MaterialVariant = "2022 Stud" |
| 254 | cut.Anchored = true; cut.Parent = workspace |
| 255 | table.insert(angBoxes, cut) |
| 256 | end |
| 257 | do |
| 258 | local edgeDir = -1*rightV + 0*upV |
| 259 | local edgePerp = 0*rightV + -1*upV |
| 260 | local cut = Instance.new("Part") |
| 261 | cut.Size = Vector3.new(12.8, 0.7, 12.8) |
| 262 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6.4 * edgePerp, edgeDir, normalV) |
| 263 | cut.BrickColor = BrickColor.new("Ghost grey") |
| 264 | cut.Material = Enum.Material.Glacier |
| 265 | cut.MaterialVariant = "2022 Stud" |
| 266 | cut.Anchored = true; cut.Parent = workspace |
| 267 | table.insert(angBoxes, cut) |
| 268 | end |
| 269 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 270 | if #cuts > 0 then |
| 271 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 272 | for _, c in ipairs(cuts) do c:Destroy() end |
| 273 | if ok and result then |
| 274 | cyl:Destroy() |
| 275 | result.Name = "Handle"; result.Anchored = true; result.Parent = model |
| 276 | else |
| 277 | cyl.Name = "Handle"; cyl.Parent = model |
| 278 | end |
| 279 | else |
| 280 | cyl.Name = "Handle"; cyl.Parent = model |
| 281 | end |
| 282 | end |
| 283 | model.PrimaryPart = model:FindFirstChild("TopRim") |
| 284 | print("PlasticBucket built: " .. #model:GetChildren() .. " parts") |
Loading comments...