Loading model...
by FluxFeed · 8/15/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Pistol |
| 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 = "Pistol" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Black"] = "2022 Glue", |
| 25 | ["Dark stone grey"] = "2022 Stud", |
| 26 | ["Medium stone grey"] = "2022 Inlet", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "SlideMain" |
| 31 | p.Size = Vector3.new(1.2, 1.2, 8) |
| 32 | p.CFrame = CFrame.new(0, 5, 0) |
| 33 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Stud" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Name = "SlideFrontBevel" |
| 42 | p.Size = Vector3.new(1.2, 0.2, 0.4) |
| 43 | p.CFrame = CFrame.new(0.04, 4.5, -3.8) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) |
| 44 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Stud" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Name = "SlideRearBevel" |
| 53 | p.Size = Vector3.new(1.2, 0.2, 0.4) |
| 54 | p.CFrame = CFrame.new(0.08, 4.5, 3.8) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) |
| 55 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 56 | p.Material = Enum.Material.Glacier |
| 57 | p.MaterialVariant = "2022 Stud" |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Shape = Enum.PartType.Cylinder |
| 64 | p.Name = "BarrelHole" |
| 65 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 66 | p.CFrame = CFrame.new(0, 5, -4.09) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 67 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 68 | p.Material = Enum.Material.Glacier |
| 69 | p.MaterialVariant = "2022 Inlet" |
| 70 | p.Anchored = true |
| 71 | p.Parent = model |
| 72 | end |
| 73 | do |
| 74 | local p = Instance.new("Part") |
| 75 | p.Name = "FrameFront" |
| 76 | p.Size = Vector3.new(1.2, 0.8, 5) |
| 77 | p.CFrame = CFrame.new(0, 3.96, -1.5) |
| 78 | p.BrickColor = BrickColor.new("Black") |
| 79 | p.Material = Enum.Material.Glacier |
| 80 | p.MaterialVariant = "2022 Glue" |
| 81 | p.Anchored = true |
| 82 | p.Parent = model |
| 83 | end |
| 84 | do |
| 85 | local p = Instance.new("Part") |
| 86 | p.Name = "GripMain" |
| 87 | p.Size = Vector3.new(1.2, 4.5, 2) |
| 88 | p.CFrame = CFrame.new(0.04, 2, 3.2) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)) |
| 89 | p.BrickColor = BrickColor.new("Black") |
| 90 | p.Material = Enum.Material.Glacier |
| 91 | p.MaterialVariant = "2022 Glue" |
| 92 | p.Anchored = true |
| 93 | p.Parent = model |
| 94 | end |
| 95 | do |
| 96 | local p = Instance.new("Part") |
| 97 | p.Name = "TriggerGuardFront" |
| 98 | p.Size = Vector3.new(1, 1.2, 0.2) |
| 99 | p.CFrame = CFrame.new(0.04, 3.2, -0.5) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 100 | p.BrickColor = BrickColor.new("Black") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Glue" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Name = "TriggerGuardBottom" |
| 109 | p.Size = Vector3.new(1, 0.2, 2) |
| 110 | p.CFrame = CFrame.new(0, 2.6, 0.5) |
| 111 | p.BrickColor = BrickColor.new("Black") |
| 112 | p.Material = Enum.Material.Glacier |
| 113 | p.MaterialVariant = "2022 Glue" |
| 114 | p.Anchored = true |
| 115 | p.Parent = model |
| 116 | end |
| 117 | do |
| 118 | local p = Instance.new("Part") |
| 119 | p.Name = "Trigger" |
| 120 | p.Size = Vector3.new(0.3, 0.8, 0.2) |
| 121 | p.CFrame = CFrame.new(0, 3.5, 0.8) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)) |
| 122 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 123 | p.Material = Enum.Material.Glacier |
| 124 | p.MaterialVariant = "2022 Stud" |
| 125 | p.Anchored = true |
| 126 | p.Parent = model |
| 127 | end |
| 128 | do |
| 129 | local p = Instance.new("Part") |
| 130 | p.Name = "FrontSight" |
| 131 | p.Size = Vector3.new(0.2, 0.2, 0.4) |
| 132 | p.CFrame = CFrame.new(0, 5.74, -3.5) |
| 133 | p.BrickColor = BrickColor.new("Black") |
| 134 | p.Material = Enum.Material.Glacier |
| 135 | p.MaterialVariant = "2022 Glue" |
| 136 | p.Anchored = true |
| 137 | p.Parent = model |
| 138 | end |
| 139 | do |
| 140 | local p = Instance.new("Part") |
| 141 | p.Name = "RearSightLeft" |
| 142 | p.Size = Vector3.new(0.2, 0.2, 0.4) |
| 143 | p.CFrame = CFrame.new(-0.4, 5.78, 3.5) |
| 144 | p.BrickColor = BrickColor.new("Black") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Glue" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Name = "RearSightRight" |
| 153 | p.Size = Vector3.new(0.2, 0.2, 0.4) |
| 154 | p.CFrame = CFrame.new(0.4, 5.78, 3.5) |
| 155 | p.BrickColor = BrickColor.new("Black") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Glue" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | model.PrimaryPart = model:FindFirstChild("SlideMain") |
| 162 | print("Pistol built: " .. #model:GetChildren() .. " parts") |
Loading comments...