Loading model...
by MaDev · 4/28/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Blunderbuss |
| 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 = "Blunderbuss" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Stud", |
| 25 | ["Light stone grey"] = "2022 Glue", |
| 26 | ["Medium stone grey"] = "2022 Inlet", |
| 27 | ["Nougat"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "BarrelMain" |
| 33 | p.Size = Vector3.new(10, 1.2, 1.2) |
| 34 | p.CFrame = CFrame.new(0, 1.5, -4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 35 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Muzzle1" |
| 45 | p.Size = Vector3.new(1, 1.4, 1.4) |
| 46 | p.CFrame = CFrame.new(0, 1.5, -9.54) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 47 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Muzzle2" |
| 57 | p.Size = Vector3.new(1, 1.8, 1.8) |
| 58 | p.CFrame = CFrame.new(0, 1.5, -10.46) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 59 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Muzzle3" |
| 69 | p.Size = Vector3.new(1, 2.4, 2.4) |
| 70 | p.CFrame = CFrame.new(0, 1.5, -11.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 71 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Muzzle4" |
| 81 | p.Size = Vector3.new(0.5, 2.8, 2.8) |
| 82 | p.CFrame = CFrame.new(0, 1.5, -12.29) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 83 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Inlet" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Name = "StockFore" |
| 92 | p.Size = Vector3.new(1.4, 1, 10) |
| 93 | p.CFrame = CFrame.new(0, 0.7, -3.96) |
| 94 | p.BrickColor = BrickColor.new("Nougat") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Name = "StockMid" |
| 103 | p.Size = Vector3.new(1.6, 1.6, 4) |
| 104 | p.CFrame = CFrame.new(0, 0.8, 2) |
| 105 | p.BrickColor = BrickColor.new("Nougat") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Stud" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Name = "StockDrop" |
| 114 | p.Size = Vector3.new(1.4, 1.8, 4.5) |
| 115 | p.CFrame = CFrame.new(0.04, -0.2, 5.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)) |
| 116 | p.BrickColor = BrickColor.new("Nougat") |
| 117 | p.Material = Enum.Material.Glacier |
| 118 | p.MaterialVariant = "2022 Stud" |
| 119 | p.Anchored = true |
| 120 | p.Parent = model |
| 121 | end |
| 122 | do |
| 123 | local p = Instance.new("Part") |
| 124 | p.Name = "StockButt" |
| 125 | p.Size = Vector3.new(1.4, 3.5, 4) |
| 126 | p.CFrame = CFrame.new(0, -1.8, 8.5) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)) |
| 127 | p.BrickColor = BrickColor.new("Nougat") |
| 128 | p.Material = Enum.Material.Glacier |
| 129 | p.MaterialVariant = "2022 Stud" |
| 130 | p.Anchored = true |
| 131 | p.Parent = model |
| 132 | end |
| 133 | do |
| 134 | local p = Instance.new("Part") |
| 135 | p.Name = "ButtPlate" |
| 136 | p.Size = Vector3.new(1.45, 3.6, 0.4) |
| 137 | p.CFrame = CFrame.new(0, -1.9, 10.6) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)) |
| 138 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 139 | p.Material = Enum.Material.Glacier |
| 140 | p.MaterialVariant = "2022 Inlet" |
| 141 | p.Anchored = true |
| 142 | p.Parent = model |
| 143 | end |
| 144 | do |
| 145 | local p = Instance.new("Part") |
| 146 | p.Name = "Band1" |
| 147 | p.Size = Vector3.new(1.6, 2.1, 0.6) |
| 148 | p.CFrame = CFrame.new(0, 1.1, -2) |
| 149 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 150 | p.Material = Enum.Material.Glacier |
| 151 | p.MaterialVariant = "2022 Inlet" |
| 152 | p.Anchored = true |
| 153 | p.Parent = model |
| 154 | end |
| 155 | do |
| 156 | local p = Instance.new("Part") |
| 157 | p.Name = "Band2" |
| 158 | p.Size = Vector3.new(1.6, 2.1, 0.6) |
| 159 | p.CFrame = CFrame.new(0, 1.1, -6) |
| 160 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Ramrod" |
| 170 | p.Size = Vector3.new(10, 0.4, 0.4) |
| 171 | p.CFrame = CFrame.new(0, 0.1, -4.04) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 172 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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 = "RamrodTip" |
| 182 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 183 | p.CFrame = CFrame.new(0, 0.1, -9.2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 184 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 185 | p.Material = Enum.Material.Glacier |
| 186 | p.MaterialVariant = "2022 Inlet" |
| 187 | p.Anchored = true |
| 188 | p.Parent = model |
| 189 | end |
| 190 | do |
| 191 | local p = Instance.new("Part") |
| 192 | p.Name = "LockPlate" |
| 193 | p.Size = Vector3.new(0.2, 1, 3) |
| 194 | p.CFrame = CFrame.new(0.85, 1, 1.46) |
| 195 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 196 | p.Material = Enum.Material.Glacier |
| 197 | p.MaterialVariant = "2022 Inlet" |
| 198 | p.Anchored = true |
| 199 | p.Parent = model |
| 200 | end |
| 201 | do |
| 202 | local p = Instance.new("Part") |
| 203 | p.Name = "HammerBase" |
| 204 | p.Size = Vector3.new(0.3, 1, 0.4) |
| 205 | p.CFrame = CFrame.new(0.98, 1.5, 2.2) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) |
| 206 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 207 | p.Material = Enum.Material.Glacier |
| 208 | p.MaterialVariant = "2022 Inlet" |
| 209 | p.Anchored = true |
| 210 | p.Parent = model |
| 211 | end |
| 212 | do |
| 213 | local p = Instance.new("Part") |
| 214 | p.Name = "HammerTop" |
| 215 | p.Size = Vector3.new(0.3, 0.8, 0.4) |
| 216 | p.CFrame = CFrame.new(0.86, 2.2, 1.8) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)) |
| 217 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 218 | p.Material = Enum.Material.Glacier |
| 219 | p.MaterialVariant = "2022 Inlet" |
| 220 | p.Anchored = true |
| 221 | p.Parent = model |
| 222 | end |
| 223 | do |
| 224 | local p = Instance.new("Part") |
| 225 | p.Name = "Flint" |
| 226 | p.Size = Vector3.new(0.2, 0.4, 0.4) |
| 227 | p.CFrame = CFrame.new(0.94, 2.5, 1.5) |
| 228 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 229 | p.Material = Enum.Material.Glacier |
| 230 | p.MaterialVariant = "2022 Stud" |
| 231 | p.Anchored = true |
| 232 | p.Parent = model |
| 233 | end |
| 234 | do |
| 235 | local p = Instance.new("Part") |
| 236 | p.Name = "FrizzenBase" |
| 237 | p.Size = Vector3.new(0.3, 0.4, 0.6) |
| 238 | p.CFrame = CFrame.new(0.98, 1.5, 0.5) |
| 239 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 240 | p.Material = Enum.Material.Glacier |
| 241 | p.MaterialVariant = "2022 Inlet" |
| 242 | p.Anchored = true |
| 243 | p.Parent = model |
| 244 | end |
| 245 | do |
| 246 | local p = Instance.new("Part") |
| 247 | p.Name = "FrizzenFace" |
| 248 | p.Size = Vector3.new(0.3, 0.8, 0.2) |
| 249 | p.CFrame = CFrame.new(0.86, 2, 0.4) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)) |
| 250 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 251 | p.Material = Enum.Material.Glacier |
| 252 | p.MaterialVariant = "2022 Inlet" |
| 253 | p.Anchored = true |
| 254 | p.Parent = model |
| 255 | end |
| 256 | do |
| 257 | local p = Instance.new("Part") |
| 258 | p.Name = "GuardTang" |
| 259 | p.Size = Vector3.new(0.4, 0.2, 1.5) |
| 260 | p.CFrame = CFrame.new(0.04, 0, 2.8) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 261 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 262 | p.Material = Enum.Material.Glacier |
| 263 | p.MaterialVariant = "2022 Inlet" |
| 264 | p.Anchored = true |
| 265 | p.Parent = model |
| 266 | end |
| 267 | do |
| 268 | local p = Instance.new("Part") |
| 269 | p.Name = "Trigger" |
| 270 | p.Size = Vector3.new(0.2, 0.6, 0.2) |
| 271 | p.CFrame = CFrame.new(0, 0.3, 1.2) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 272 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 273 | p.Material = Enum.Material.Glacier |
| 274 | p.MaterialVariant = "2022 Stud" |
| 275 | p.Anchored = true |
| 276 | p.Parent = model |
| 277 | end |
| 278 | do |
| 279 | local p = Instance.new("Part") |
| 280 | p.Shape = Enum.PartType.Cylinder |
| 281 | p.Name = "Skull" |
| 282 | p.Size = Vector3.new(0.1, 0.8, 0.8) |
| 283 | p.CFrame = CFrame.new(0.79, -1.2, 8.5) |
| 284 | p.BrickColor = BrickColor.new("Light stone grey") |
| 285 | p.Material = Enum.Material.Glacier |
| 286 | p.MaterialVariant = "2022 Glue" |
| 287 | p.Anchored = true |
| 288 | p.Parent = model |
| 289 | end |
| 290 | do |
| 291 | local p = Instance.new("Part") |
| 292 | p.Name = "Jaw" |
| 293 | p.Size = Vector3.new(0.1, 0.4, 0.5) |
| 294 | p.CFrame = CFrame.new(0.95, -1.6, 8.5) |
| 295 | p.BrickColor = BrickColor.new("Light stone grey") |
| 296 | p.Material = Enum.Material.Glacier |
| 297 | p.MaterialVariant = "2022 Glue" |
| 298 | p.Anchored = true |
| 299 | p.Parent = model |
| 300 | end |
| 301 | do |
| 302 | local p = Instance.new("Part") |
| 303 | p.Shape = Enum.PartType.Cylinder |
| 304 | p.Name = "EyeL" |
| 305 | p.Size = Vector3.new(0.1, 0.2, 0.2) |
| 306 | p.CFrame = CFrame.new(0.92, -1.1, 8.3) |
| 307 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 308 | p.Material = Enum.Material.Glacier |
| 309 | p.MaterialVariant = "2022 Stud" |
| 310 | p.Anchored = true |
| 311 | p.Parent = model |
| 312 | end |
| 313 | do |
| 314 | local p = Instance.new("Part") |
| 315 | p.Shape = Enum.PartType.Cylinder |
| 316 | p.Name = "EyeR" |
| 317 | p.Size = Vector3.new(0.1, 0.2, 0.2) |
| 318 | p.CFrame = CFrame.new(0.68, -1.1, 8.7) |
| 319 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 320 | p.Material = Enum.Material.Glacier |
| 321 | p.MaterialVariant = "2022 Stud" |
| 322 | p.Anchored = true |
| 323 | p.Parent = model |
| 324 | end |
| 325 | do |
| 326 | local p = Instance.new("Part") |
| 327 | p.Name = "Bone1" |
| 328 | p.Size = Vector3.new(0.1, 1.6, 0.2) |
| 329 | p.CFrame = CFrame.new(0.87, -1.8, 8.5) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 330 | p.BrickColor = BrickColor.new("Light stone grey") |
| 331 | p.Material = Enum.Material.Glacier |
| 332 | p.MaterialVariant = "2022 Glue" |
| 333 | p.Anchored = true |
| 334 | p.Parent = model |
| 335 | end |
| 336 | do |
| 337 | local p = Instance.new("Part") |
| 338 | p.Name = "Bone2" |
| 339 | p.Size = Vector3.new(0.1, 1.6, 0.2) |
| 340 | p.CFrame = CFrame.new(0.83, -1.8, 8.5) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) |
| 341 | p.BrickColor = BrickColor.new("Light stone grey") |
| 342 | p.Material = Enum.Material.Glacier |
| 343 | p.MaterialVariant = "2022 Glue" |
| 344 | p.Anchored = true |
| 345 | p.Parent = model |
| 346 | end |
| 347 | do |
| 348 | local rightV = Vector3.new(0,0,1).Unit |
| 349 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 350 | local normalV = upV:Cross(rightV) |
| 351 | local pos = Vector3.new(0, -0.04, 1.5) |
| 352 | local cyl = Instance.new("Part") |
| 353 | cyl.Shape = Enum.PartType.Cylinder |
| 354 | cyl.Size = Vector3.new(0.4, 2, 2) |
| 355 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 356 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 357 | cyl.Material = Enum.Material.Glacier |
| 358 | cyl.MaterialVariant = "2022 Inlet" |
| 359 | cyl.Anchored = true; cyl.Parent = workspace |
| 360 | local cuts = {} |
| 361 | local hole = Instance.new("Part") |
| 362 | hole.Shape = Enum.PartType.Cylinder |
| 363 | hole.Size = Vector3.new(0.6, 1.6, 1.6) |
| 364 | hole.CFrame = cyl.CFrame |
| 365 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 366 | hole.Material = Enum.Material.Glacier |
| 367 | hole.MaterialVariant = "2022 Inlet" |
| 368 | hole.Anchored = true; hole.Parent = workspace |
| 369 | table.insert(cuts, hole) |
| 370 | local angBoxes = {} |
| 371 | do |
| 372 | local edgeDir = 1*rightV + 0*upV |
| 373 | local edgePerp = 0*rightV + 1*upV |
| 374 | local cut = Instance.new("Part") |
| 375 | cut.Size = Vector3.new(4, 0.6, 4) |
| 376 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 377 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 378 | cut.Material = Enum.Material.Glacier |
| 379 | cut.MaterialVariant = "2022 Inlet" |
| 380 | cut.Anchored = true; cut.Parent = workspace |
| 381 | table.insert(angBoxes, cut) |
| 382 | end |
| 383 | do |
| 384 | local edgeDir = -1*rightV + 0*upV |
| 385 | local edgePerp = 0*rightV + -1*upV |
| 386 | local cut = Instance.new("Part") |
| 387 | cut.Size = Vector3.new(4, 0.6, 4) |
| 388 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 389 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 390 | cut.Material = Enum.Material.Glacier |
| 391 | cut.MaterialVariant = "2022 Inlet" |
| 392 | cut.Anchored = true; cut.Parent = workspace |
| 393 | table.insert(angBoxes, cut) |
| 394 | end |
| 395 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 396 | if #cuts > 0 then |
| 397 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 398 | for _, c in ipairs(cuts) do c:Destroy() end |
| 399 | if ok and result then |
| 400 | cyl:Destroy() |
| 401 | result.Name = "TriggerGuard"; result.Anchored = true; result.Parent = model |
| 402 | else |
| 403 | cyl.Name = "TriggerGuard"; cyl.Parent = model |
| 404 | end |
| 405 | else |
| 406 | cyl.Name = "TriggerGuard"; cyl.Parent = model |
| 407 | end |
| 408 | end |
| 409 | model.PrimaryPart = model:FindFirstChild("StockMid") |
| 410 | print("Blunderbuss built: " .. #model:GetChildren() .. " parts") |
Loading comments...