Loading model...
by Julio Lopez · 7/23/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: RedButton |
| 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 = "RedButton" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Dark stone grey"] = "2022 Stud", |
| 26 | ["Neon orange"] = "2022 Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Shape = Enum.PartType.Cylinder |
| 31 | p.Name = "BasePlate" |
| 32 | p.Size = Vector3.new(0.5, 6, 6) |
| 33 | p.CFrame = CFrame.new(0, 0.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 34 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Stud" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Shape = Enum.PartType.Cylinder |
| 43 | p.Name = "BaseStem" |
| 44 | p.Size = Vector3.new(2.5, 4, 4) |
| 45 | p.CFrame = CFrame.new(0, 2.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 46 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("Part") |
| 54 | p.Shape = Enum.PartType.Cylinder |
| 55 | p.Name = "ButtonStem" |
| 56 | p.Size = Vector3.new(1.5, 3.5, 3.5) |
| 57 | p.CFrame = CFrame.new(0, 4.54, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 58 | p.BrickColor = BrickColor.new("Bright red") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Shape = Enum.PartType.Cylinder |
| 67 | p.Name = "ButtonLip" |
| 68 | p.Size = Vector3.new(0.5, 9, 9) |
| 69 | p.CFrame = CFrame.new(0, 5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 70 | p.BrickColor = BrickColor.new("Bright red") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Stud" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local rightV = Vector3.new(1,0,0).Unit |
| 78 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 79 | local normalV = upV:Cross(rightV) |
| 80 | local pos = Vector3.new(0, 0.42, 0) |
| 81 | local cyl = Instance.new("Part") |
| 82 | cyl.Shape = Enum.PartType.Cylinder |
| 83 | cyl.Size = Vector3.new(0.5, 11, 11) |
| 84 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 85 | cyl.BrickColor = BrickColor.new("Neon orange") |
| 86 | cyl.Material = Enum.Material.Glacier |
| 87 | cyl.MaterialVariant = "2022 Stud" |
| 88 | cyl.Anchored = true; cyl.Parent = workspace |
| 89 | local cuts = {} |
| 90 | local hole = Instance.new("Part") |
| 91 | hole.Shape = Enum.PartType.Cylinder |
| 92 | hole.Size = Vector3.new(0.7, 9, 9) |
| 93 | hole.CFrame = cyl.CFrame |
| 94 | hole.BrickColor = BrickColor.new("Neon orange") |
| 95 | hole.Material = Enum.Material.Glacier |
| 96 | hole.MaterialVariant = "2022 Stud" |
| 97 | hole.Anchored = true; hole.Parent = workspace |
| 98 | table.insert(cuts, hole) |
| 99 | if #cuts > 0 then |
| 100 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 101 | for _, c in ipairs(cuts) do c:Destroy() end |
| 102 | if ok and result then |
| 103 | cyl:Destroy() |
| 104 | result.Name = "GlowRing"; result.Anchored = true; result.Parent = model |
| 105 | else |
| 106 | cyl.Name = "GlowRing"; cyl.Parent = model |
| 107 | end |
| 108 | else |
| 109 | cyl.Name = "GlowRing"; cyl.Parent = model |
| 110 | end |
| 111 | end |
| 112 | do |
| 113 | local upV = Vector3.new(0,1,0).Unit |
| 114 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 115 | local forwardV = rightV:Cross(upV) |
| 116 | local pos = Vector3.new(0, 5, 0) |
| 117 | local ball = Instance.new("Part") |
| 118 | ball.Shape = Enum.PartType.Ball |
| 119 | ball.Size = Vector3.new(9, 9, 9) |
| 120 | ball.CFrame = CFrame.new(pos) |
| 121 | ball.BrickColor = BrickColor.new("Bright red") |
| 122 | ball.Material = Enum.Material.Glacier |
| 123 | ball.MaterialVariant = "2022 Stud" |
| 124 | ball.Anchored = true; ball.Parent = workspace |
| 125 | local cuts = {} |
| 126 | do |
| 127 | local h = 0 |
| 128 | local cut = Instance.new("Part") |
| 129 | cut.Size = Vector3.new(18, 18, 18) |
| 130 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-9), rightV, upV) |
| 131 | cut.BrickColor = BrickColor.new("Bright red") |
| 132 | cut.Material = Enum.Material.Glacier |
| 133 | cut.MaterialVariant = "2022 Stud" |
| 134 | cut.Anchored = true; cut.Parent = workspace |
| 135 | table.insert(cuts, cut) |
| 136 | end |
| 137 | if #cuts > 0 then |
| 138 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 139 | for _, c in ipairs(cuts) do c:Destroy() end |
| 140 | if ok and result then |
| 141 | ball:Destroy() |
| 142 | result.Name = "ButtonDome"; result.Anchored = true; result.Parent = model |
| 143 | else |
| 144 | ball.Name = "ButtonDome"; ball.Parent = model |
| 145 | end |
| 146 | else |
| 147 | ball.Name = "ButtonDome"; ball.Parent = model |
| 148 | end |
| 149 | end |
| 150 | model.PrimaryPart = model:FindFirstChild("BaseStem") |
| 151 | print("RedButton built: " .. #model:GetChildren() .. " parts") |
Loading comments...