Loading model...
by poop king · 3/25/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: CompactSMG |
| 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 = "CompactSMG" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Glue", |
| 25 | ["Medium stone grey"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Weld", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "RecMain" |
| 31 | p.Size = Vector3.new(1.4, 2, 9) |
| 32 | p.CFrame = CFrame.new(0, 1.5, 0) |
| 33 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Glue" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Name = "RecTop" |
| 42 | p.Size = Vector3.new(1.4, 0.5, 9) |
| 43 | p.CFrame = CFrame.new(0, 2.79, 0) |
| 44 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Glue" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Name = "SideRibL" |
| 53 | p.Size = Vector3.new(0.2, 0.6, 4) |
| 54 | p.CFrame = CFrame.new(-0.75, 1.5, -1) |
| 55 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 56 | p.Material = Enum.Material.Glacier |
| 57 | p.MaterialVariant = "2022 Glue" |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Name = "SideRibR" |
| 64 | p.Size = Vector3.new(0.2, 0.6, 4) |
| 65 | p.CFrame = CFrame.new(0.75, 1.5, -1) |
| 66 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 67 | p.Material = Enum.Material.Glacier |
| 68 | p.MaterialVariant = "2022 Glue" |
| 69 | p.Anchored = true |
| 70 | p.Parent = model |
| 71 | end |
| 72 | do |
| 73 | local p = Instance.new("Part") |
| 74 | p.Name = "RecRearLower" |
| 75 | p.Size = Vector3.new(1.4, 0.5, 2) |
| 76 | p.CFrame = CFrame.new(0, 0.21, 3.5) |
| 77 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 78 | p.Material = Enum.Material.Glacier |
| 79 | p.MaterialVariant = "2022 Glue" |
| 80 | p.Anchored = true |
| 81 | p.Parent = model |
| 82 | end |
| 83 | do |
| 84 | local p = Instance.new("Part") |
| 85 | p.Name = "RecFrontLower" |
| 86 | p.Size = Vector3.new(1.4, 0.5, 4) |
| 87 | p.CFrame = CFrame.new(0, 0.21, -2.5) |
| 88 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Glue" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Name = "GripMain" |
| 97 | p.Size = Vector3.new(1.3, 4, 2.5) |
| 98 | p.CFrame = CFrame.new(0, -1.8, 1) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)) |
| 99 | p.BrickColor = BrickColor.new("Really black") |
| 100 | p.Material = Enum.Material.Glacier |
| 101 | p.MaterialVariant = "2022 Weld" |
| 102 | p.Anchored = true |
| 103 | p.Parent = model |
| 104 | end |
| 105 | do |
| 106 | local p = Instance.new("Part") |
| 107 | p.Name = "GripBase" |
| 108 | p.Size = Vector3.new(1.35, 0.4, 2.6) |
| 109 | p.CFrame = CFrame.new(0, -3.9, 1.15) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)) |
| 110 | p.BrickColor = BrickColor.new("Really black") |
| 111 | p.Material = Enum.Material.Glacier |
| 112 | p.MaterialVariant = "2022 Weld" |
| 113 | p.Anchored = true |
| 114 | p.Parent = model |
| 115 | end |
| 116 | do |
| 117 | local p = Instance.new("Part") |
| 118 | p.Name = "Magazine" |
| 119 | p.Size = Vector3.new(1.1, 1.8, 1.8) |
| 120 | p.CFrame = CFrame.new(0, -4.8, 1.25) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)) |
| 121 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 122 | p.Material = Enum.Material.Glacier |
| 123 | p.MaterialVariant = "2022 Stud" |
| 124 | p.Anchored = true |
| 125 | p.Parent = model |
| 126 | end |
| 127 | do |
| 128 | local p = Instance.new("Part") |
| 129 | p.Name = "MagBumper" |
| 130 | p.Size = Vector3.new(1.2, 0.4, 1.9) |
| 131 | p.CFrame = CFrame.new(0, -5.8, 1.35) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)) |
| 132 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 133 | p.Material = Enum.Material.Glacier |
| 134 | p.MaterialVariant = "2022 Glue" |
| 135 | p.Anchored = true |
| 136 | p.Parent = model |
| 137 | end |
| 138 | do |
| 139 | local p = Instance.new("Part") |
| 140 | p.Shape = Enum.PartType.Cylinder |
| 141 | p.Name = "BarrelNut" |
| 142 | p.Size = Vector3.new(0.8, 1.6, 1.6) |
| 143 | p.CFrame = CFrame.new(0, 1.5, -4.8) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 144 | p.BrickColor = BrickColor.new("Really black") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Weld" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Shape = Enum.PartType.Cylinder |
| 153 | p.Name = "Barrel" |
| 154 | p.Size = Vector3.new(2, 0.6, 0.6) |
| 155 | p.CFrame = CFrame.new(0, 1.5, -6) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 156 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 157 | p.Material = Enum.Material.Glacier |
| 158 | p.MaterialVariant = "2022 Stud" |
| 159 | p.Anchored = true |
| 160 | p.Parent = model |
| 161 | end |
| 162 | do |
| 163 | local p = Instance.new("Part") |
| 164 | p.Name = "FrontSightBase" |
| 165 | p.Size = Vector3.new(0.6, 0.6, 0.8) |
| 166 | p.CFrame = CFrame.new(0, 3.2, -4) |
| 167 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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.Name = "FrontSightWingL" |
| 176 | p.Size = Vector3.new(0.15, 0.8, 0.8) |
| 177 | p.CFrame = CFrame.new(-0.4, 3.5, -4) |
| 178 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 179 | p.Material = Enum.Material.Glacier |
| 180 | p.MaterialVariant = "2022 Glue" |
| 181 | p.Anchored = true |
| 182 | p.Parent = model |
| 183 | end |
| 184 | do |
| 185 | local p = Instance.new("Part") |
| 186 | p.Name = "FrontSightWingR" |
| 187 | p.Size = Vector3.new(0.15, 0.8, 0.8) |
| 188 | p.CFrame = CFrame.new(0.4, 3.5, -4) |
| 189 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 190 | p.Material = Enum.Material.Glacier |
| 191 | p.MaterialVariant = "2022 Glue" |
| 192 | p.Anchored = true |
| 193 | p.Parent = model |
| 194 | end |
| 195 | do |
| 196 | local p = Instance.new("Part") |
| 197 | p.Name = "FrontSightPost" |
| 198 | p.Size = Vector3.new(0.15, 0.6, 0.15) |
| 199 | p.CFrame = CFrame.new(0, 3.6, -4) |
| 200 | p.BrickColor = BrickColor.new("Really black") |
| 201 | p.Material = Enum.Material.Glacier |
| 202 | p.MaterialVariant = "2022 Weld" |
| 203 | p.Anchored = true |
| 204 | p.Parent = model |
| 205 | end |
| 206 | do |
| 207 | local p = Instance.new("Part") |
| 208 | p.Name = "RearSightBase" |
| 209 | p.Size = Vector3.new(0.8, 0.6, 1) |
| 210 | p.CFrame = CFrame.new(0, 3.2, 4.04) |
| 211 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 212 | p.Material = Enum.Material.Glacier |
| 213 | p.MaterialVariant = "2022 Glue" |
| 214 | p.Anchored = true |
| 215 | p.Parent = model |
| 216 | end |
| 217 | do |
| 218 | local p = Instance.new("Part") |
| 219 | p.Name = "RearSightWingL" |
| 220 | p.Size = Vector3.new(0.2, 0.8, 1) |
| 221 | p.CFrame = CFrame.new(-0.58, 3.5, 4) |
| 222 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 223 | p.Material = Enum.Material.Glacier |
| 224 | p.MaterialVariant = "2022 Glue" |
| 225 | p.Anchored = true |
| 226 | p.Parent = model |
| 227 | end |
| 228 | do |
| 229 | local p = Instance.new("Part") |
| 230 | p.Name = "RearSightWingR" |
| 231 | p.Size = Vector3.new(0.2, 0.8, 1) |
| 232 | p.CFrame = CFrame.new(0.58, 3.5, 4) |
| 233 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 234 | p.Material = Enum.Material.Glacier |
| 235 | p.MaterialVariant = "2022 Glue" |
| 236 | p.Anchored = true |
| 237 | p.Parent = model |
| 238 | end |
| 239 | do |
| 240 | local p = Instance.new("Part") |
| 241 | p.Name = "GuardFront" |
| 242 | p.Size = Vector3.new(0.4, 2, 0.2) |
| 243 | p.CFrame = CFrame.new(0.04, -0.58, -1.5) |
| 244 | p.BrickColor = BrickColor.new("Really black") |
| 245 | p.Material = Enum.Material.Glacier |
| 246 | p.MaterialVariant = "2022 Weld" |
| 247 | p.Anchored = true |
| 248 | p.Parent = model |
| 249 | end |
| 250 | do |
| 251 | local p = Instance.new("Part") |
| 252 | p.Name = "GuardBottom" |
| 253 | p.Size = Vector3.new(0.4, 0.2, 2.5) |
| 254 | p.CFrame = CFrame.new(0, -1.4, -0.25) |
| 255 | p.BrickColor = BrickColor.new("Really black") |
| 256 | p.Material = Enum.Material.Glacier |
| 257 | p.MaterialVariant = "2022 Weld" |
| 258 | p.Anchored = true |
| 259 | p.Parent = model |
| 260 | end |
| 261 | do |
| 262 | local p = Instance.new("Part") |
| 263 | p.Name = "Trigger" |
| 264 | p.Size = Vector3.new(0.3, 1, 0.3) |
| 265 | p.CFrame = CFrame.new(0, -0.2, -0.5) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 266 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 267 | p.Material = Enum.Material.Glacier |
| 268 | p.MaterialVariant = "2022 Glue" |
| 269 | p.Anchored = true |
| 270 | p.Parent = model |
| 271 | end |
| 272 | do |
| 273 | local p = Instance.new("Part") |
| 274 | p.Name = "CockingKnobBase" |
| 275 | p.Size = Vector3.new(0.6, 0.4, 1.2) |
| 276 | p.CFrame = CFrame.new(0, 3.1, -1) |
| 277 | p.BrickColor = BrickColor.new("Really black") |
| 278 | p.Material = Enum.Material.Glacier |
| 279 | p.MaterialVariant = "2022 Weld" |
| 280 | p.Anchored = true |
| 281 | p.Parent = model |
| 282 | end |
| 283 | do |
| 284 | local p = Instance.new("Part") |
| 285 | p.Name = "CockingKnobTop" |
| 286 | p.Size = Vector3.new(0.8, 0.3, 0.8) |
| 287 | p.CFrame = CFrame.new(0, 3.4, -1) |
| 288 | p.BrickColor = BrickColor.new("Really black") |
| 289 | p.Material = Enum.Material.Glacier |
| 290 | p.MaterialVariant = "2022 Weld" |
| 291 | p.Anchored = true |
| 292 | p.Parent = model |
| 293 | end |
| 294 | model.PrimaryPart = model:FindFirstChild("RecMain") |
| 295 | print("CompactSMG built: " .. #model:GetChildren() .. " parts") |
Loading comments...