Loading model...
by Bad Karma · 4/16/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PaintBucket |
| 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 = "PaintBucket" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright blue"] = "2022 Universal", |
| 25 | ["Bright red"] = "2022 Stud", |
| 26 | ["Dark stone grey"] = "2022 Stud", |
| 27 | ["Medium stone grey"] = "2022 Inlet", |
| 28 | ["White"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Shape = Enum.PartType.Cylinder |
| 33 | p.Name = "BucketBody" |
| 34 | p.Size = Vector3.new(12, 10, 10) |
| 35 | p.CFrame = CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 36 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Inlet" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Shape = Enum.PartType.Cylinder |
| 45 | p.Name = "BucketRim" |
| 46 | p.Size = Vector3.new(0.8, 10.6, 10.6) |
| 47 | p.CFrame = CFrame.new(0, 11.64, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 48 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 Inlet" |
| 51 | p.Anchored = true |
| 52 | p.Parent = model |
| 53 | end |
| 54 | do |
| 55 | local p = Instance.new("Part") |
| 56 | p.Shape = Enum.PartType.Cylinder |
| 57 | p.Name = "PaintFill" |
| 58 | p.Size = Vector3.new(0.2, 9.8, 9.8) |
| 59 | p.CFrame = CFrame.new(0, 11.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 60 | p.BrickColor = BrickColor.new("Bright red") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 Stud" |
| 63 | p.Anchored = true |
| 64 | p.Parent = model |
| 65 | end |
| 66 | do |
| 67 | local p = Instance.new("Part") |
| 68 | p.Shape = Enum.PartType.Cylinder |
| 69 | p.Name = "MountLeft" |
| 70 | p.Size = Vector3.new(1, 1.5, 1.5) |
| 71 | p.CFrame = CFrame.new(-5.2, 10.5, 0) |
| 72 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 73 | p.Material = Enum.Material.Glacier |
| 74 | p.MaterialVariant = "2022 Stud" |
| 75 | p.Anchored = true |
| 76 | p.Parent = model |
| 77 | end |
| 78 | do |
| 79 | local p = Instance.new("Part") |
| 80 | p.Shape = Enum.PartType.Cylinder |
| 81 | p.Name = "MountRight" |
| 82 | p.Size = Vector3.new(1, 1.5, 1.5) |
| 83 | p.CFrame = CFrame.new(5.2, 10.5, 0) |
| 84 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 85 | p.Material = Enum.Material.Glacier |
| 86 | p.MaterialVariant = "2022 Stud" |
| 87 | p.Anchored = true |
| 88 | p.Parent = model |
| 89 | end |
| 90 | do |
| 91 | local p = Instance.new("Part") |
| 92 | p.Shape = Enum.PartType.Cylinder |
| 93 | p.Name = "LabelWhite" |
| 94 | p.Size = Vector3.new(1, 6.5, 6.5) |
| 95 | p.CFrame = CFrame.new(0, 5, -4.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 96 | p.BrickColor = BrickColor.new("White") |
| 97 | p.Material = Enum.Material.Glacier |
| 98 | p.MaterialVariant = "2022 Stud" |
| 99 | p.Anchored = true |
| 100 | p.Parent = model |
| 101 | end |
| 102 | do |
| 103 | local p = Instance.new("Part") |
| 104 | p.Shape = Enum.PartType.Cylinder |
| 105 | p.Name = "LabelBlue" |
| 106 | p.Size = Vector3.new(1, 5.5, 5.5) |
| 107 | p.CFrame = CFrame.new(0, 5, -4.6) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 108 | p.BrickColor = BrickColor.new("Bright blue") |
| 109 | p.Material = Enum.Material.Glacier |
| 110 | p.MaterialVariant = "2022 Universal" |
| 111 | p.Anchored = true |
| 112 | p.Parent = model |
| 113 | end |
| 114 | do |
| 115 | local p = Instance.new("Part") |
| 116 | p.Name = "Text_P_Stem" |
| 117 | p.Size = Vector3.new(0.4, 1.6, 0.4) |
| 118 | p.CFrame = CFrame.new(-1.8, 5, -5) |
| 119 | p.BrickColor = BrickColor.new("White") |
| 120 | p.Material = Enum.Material.Glacier |
| 121 | p.MaterialVariant = "2022 Stud" |
| 122 | p.Anchored = true |
| 123 | p.Parent = model |
| 124 | end |
| 125 | do |
| 126 | local p = Instance.new("Part") |
| 127 | p.Name = "Text_P_Loop" |
| 128 | p.Size = Vector3.new(0.6, 0.8, 0.4) |
| 129 | p.CFrame = CFrame.new(-1.4, 5.44, -4.96) |
| 130 | p.BrickColor = BrickColor.new("White") |
| 131 | p.Material = Enum.Material.Glacier |
| 132 | p.MaterialVariant = "2022 Stud" |
| 133 | p.Anchored = true |
| 134 | p.Parent = model |
| 135 | end |
| 136 | do |
| 137 | local p = Instance.new("Part") |
| 138 | p.Name = "Text_P_Hole" |
| 139 | p.Size = Vector3.new(0.2, 0.4, 0.4) |
| 140 | p.CFrame = CFrame.new(-1.4, 5.4, -4.94) |
| 141 | p.BrickColor = BrickColor.new("Bright blue") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Universal" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Name = "Text_A_Main" |
| 150 | p.Size = Vector3.new(0.8, 1, 0.4) |
| 151 | p.CFrame = CFrame.new(-0.6, 4.7, -5) |
| 152 | p.BrickColor = BrickColor.new("White") |
| 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 = "Text_A_Hole" |
| 161 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 162 | p.CFrame = CFrame.new(-0.6, 4.7, -4.94) |
| 163 | p.BrickColor = BrickColor.new("Bright blue") |
| 164 | p.Material = Enum.Material.Glacier |
| 165 | p.MaterialVariant = "2022 Universal" |
| 166 | p.Anchored = true |
| 167 | p.Parent = model |
| 168 | end |
| 169 | do |
| 170 | local p = Instance.new("Part") |
| 171 | p.Name = "Text_I_Stem" |
| 172 | p.Size = Vector3.new(0.4, 0.8, 0.4) |
| 173 | p.CFrame = CFrame.new(0.2, 4.6, -5) |
| 174 | p.BrickColor = BrickColor.new("White") |
| 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 = "Text_I_Dot" |
| 183 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 184 | p.CFrame = CFrame.new(0.2, 5.4, -5) |
| 185 | p.BrickColor = BrickColor.new("White") |
| 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 = "Text_N_Left" |
| 194 | p.Size = Vector3.new(0.3, 1, 0.4) |
| 195 | p.CFrame = CFrame.new(0.8, 4.7, -5) |
| 196 | p.BrickColor = BrickColor.new("White") |
| 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 = "Text_N_Right" |
| 205 | p.Size = Vector3.new(0.3, 1, 0.4) |
| 206 | p.CFrame = CFrame.new(1.4, 4.7, -5) |
| 207 | p.BrickColor = BrickColor.new("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 = "Text_N_Top" |
| 216 | p.Size = Vector3.new(0.6, 0.3, 0.4) |
| 217 | p.CFrame = CFrame.new(1.1, 5.09, -4.96) |
| 218 | p.BrickColor = BrickColor.new("White") |
| 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 p = Instance.new("Part") |
| 226 | p.Name = "Text_T_Stem" |
| 227 | p.Size = Vector3.new(0.4, 1.4, 0.4) |
| 228 | p.CFrame = CFrame.new(2, 4.9, -5) |
| 229 | p.BrickColor = BrickColor.new("White") |
| 230 | p.Material = Enum.Material.Glacier |
| 231 | p.MaterialVariant = "2022 Stud" |
| 232 | p.Anchored = true |
| 233 | p.Parent = model |
| 234 | end |
| 235 | do |
| 236 | local p = Instance.new("Part") |
| 237 | p.Name = "Text_T_Cross" |
| 238 | p.Size = Vector3.new(0.8, 0.3, 0.4) |
| 239 | p.CFrame = CFrame.new(2, 5.2, -4.96) |
| 240 | p.BrickColor = BrickColor.new("White") |
| 241 | p.Material = Enum.Material.Glacier |
| 242 | p.MaterialVariant = "2022 Stud" |
| 243 | p.Anchored = true |
| 244 | p.Parent = model |
| 245 | end |
| 246 | do |
| 247 | local rightV = Vector3.new(1,0,0).Unit |
| 248 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 249 | local normalV = upV:Cross(rightV) |
| 250 | local pos = Vector3.new(0, 10.5, 0) |
| 251 | local cyl = Instance.new("Part") |
| 252 | cyl.Shape = Enum.PartType.Cylinder |
| 253 | cyl.Size = Vector3.new(0.6, 11.4, 11.4) |
| 254 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 255 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 256 | cyl.Material = Enum.Material.Glacier |
| 257 | cyl.MaterialVariant = "2022 Stud" |
| 258 | cyl.Anchored = true; cyl.Parent = workspace |
| 259 | local cuts = {} |
| 260 | local hole = Instance.new("Part") |
| 261 | hole.Shape = Enum.PartType.Cylinder |
| 262 | hole.Size = Vector3.new(0.8, 10.6, 10.6) |
| 263 | hole.CFrame = cyl.CFrame |
| 264 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 265 | hole.Material = Enum.Material.Glacier |
| 266 | hole.MaterialVariant = "2022 Stud" |
| 267 | hole.Anchored = true; hole.Parent = workspace |
| 268 | table.insert(cuts, hole) |
| 269 | local angBoxes = {} |
| 270 | do |
| 271 | local edgeDir = 1*rightV + 0*upV |
| 272 | local edgePerp = 0*rightV + 1*upV |
| 273 | local cut = Instance.new("Part") |
| 274 | cut.Size = Vector3.new(22.8, 0.8, 22.8) |
| 275 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.4 * edgePerp, edgeDir, normalV) |
| 276 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 277 | cut.Material = Enum.Material.Glacier |
| 278 | cut.MaterialVariant = "2022 Stud" |
| 279 | cut.Anchored = true; cut.Parent = workspace |
| 280 | table.insert(angBoxes, cut) |
| 281 | end |
| 282 | do |
| 283 | local edgeDir = -1*rightV + 0*upV |
| 284 | local edgePerp = 0*rightV + -1*upV |
| 285 | local cut = Instance.new("Part") |
| 286 | cut.Size = Vector3.new(22.8, 0.8, 22.8) |
| 287 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.4 * edgePerp, edgeDir, normalV) |
| 288 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 289 | cut.Material = Enum.Material.Glacier |
| 290 | cut.MaterialVariant = "2022 Stud" |
| 291 | cut.Anchored = true; cut.Parent = workspace |
| 292 | table.insert(angBoxes, cut) |
| 293 | end |
| 294 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 295 | if #cuts > 0 then |
| 296 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 297 | for _, c in ipairs(cuts) do c:Destroy() end |
| 298 | if ok and result then |
| 299 | cyl:Destroy() |
| 300 | result.Name = "HandleWire"; result.Anchored = true; result.Parent = model |
| 301 | else |
| 302 | cyl.Name = "HandleWire"; cyl.Parent = model |
| 303 | end |
| 304 | else |
| 305 | cyl.Name = "HandleWire"; cyl.Parent = model |
| 306 | end |
| 307 | end |
| 308 | model.PrimaryPart = model:FindFirstChild("BucketBody") |
| 309 | print("PaintBucket built: " .. #model:GetChildren() .. " parts") |
Loading comments...