Loading model...
by Jesus Ruiz · 8/7/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: GoldStudHead |
| 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 = "GoldStudHead" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Gold"] = "2022 Stud", |
| 25 | } |
| 26 | do |
| 27 | local p = Instance.new("Part") |
| 28 | p.Shape = Enum.PartType.Cylinder |
| 29 | p.Name = "HeadCore" |
| 30 | p.Size = Vector3.new(1.2, 2, 2) |
| 31 | p.CFrame = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 32 | p.BrickColor = BrickColor.new("Gold") |
| 33 | p.Material = Enum.Material.Glacier |
| 34 | p.MaterialVariant = "2022 Stud" |
| 35 | p.Anchored = true |
| 36 | p.Parent = model |
| 37 | end |
| 38 | do |
| 39 | local p = Instance.new("Part") |
| 40 | p.Shape = Enum.PartType.Cylinder |
| 41 | p.Name = "TopStud" |
| 42 | p.Size = Vector3.new(0.15, 0.6, 0.6) |
| 43 | p.CFrame = CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 44 | p.BrickColor = BrickColor.new("Gold") |
| 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 = "InnerCore" |
| 53 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 54 | p.CFrame = CFrame.new(0, 1, 0) |
| 55 | p.BrickColor = BrickColor.new("Gold") |
| 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 upV = Vector3.new(0,1,0).Unit |
| 63 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 64 | local forwardV = rightV:Cross(upV) |
| 65 | local pos = Vector3.new(0, 1.64, 0) |
| 66 | local ball = Instance.new("Part") |
| 67 | ball.Shape = Enum.PartType.Ball |
| 68 | ball.Size = Vector3.new(2, 2, 2) |
| 69 | ball.CFrame = CFrame.new(pos) |
| 70 | ball.BrickColor = BrickColor.new("Gold") |
| 71 | ball.Material = Enum.Material.Glacier |
| 72 | ball.MaterialVariant = "2022 Stud" |
| 73 | ball.Anchored = true; ball.Parent = workspace |
| 74 | local cuts = {} |
| 75 | do |
| 76 | local h = 0 |
| 77 | local cut = Instance.new("Part") |
| 78 | cut.Size = Vector3.new(4, 4, 4) |
| 79 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-2), rightV, upV) |
| 80 | cut.BrickColor = BrickColor.new("Gold") |
| 81 | cut.Material = Enum.Material.Glacier |
| 82 | cut.MaterialVariant = "2022 Stud" |
| 83 | cut.Anchored = true; cut.Parent = workspace |
| 84 | table.insert(cuts, cut) |
| 85 | end |
| 86 | if #cuts > 0 then |
| 87 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 88 | for _, c in ipairs(cuts) do c:Destroy() end |
| 89 | if ok and result then |
| 90 | ball:Destroy() |
| 91 | result.Name = "TopDome"; result.Anchored = true; result.Parent = model |
| 92 | else |
| 93 | ball.Name = "TopDome"; ball.Parent = model |
| 94 | end |
| 95 | else |
| 96 | ball.Name = "TopDome"; ball.Parent = model |
| 97 | end |
| 98 | end |
| 99 | do |
| 100 | local upV = Vector3.new(0,1,0).Unit |
| 101 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 102 | local forwardV = rightV:Cross(upV) |
| 103 | local pos = Vector3.new(0, 0.36, 0) |
| 104 | local ball = Instance.new("Part") |
| 105 | ball.Shape = Enum.PartType.Ball |
| 106 | ball.Size = Vector3.new(2, 2, 2) |
| 107 | ball.CFrame = CFrame.new(pos) |
| 108 | ball.BrickColor = BrickColor.new("Gold") |
| 109 | ball.Material = Enum.Material.Glacier |
| 110 | ball.MaterialVariant = "2022 Stud" |
| 111 | ball.Anchored = true; ball.Parent = workspace |
| 112 | local cuts = {} |
| 113 | do |
| 114 | local h = 0 |
| 115 | local cut = Instance.new("Part") |
| 116 | cut.Size = Vector3.new(4, 4, 4) |
| 117 | cut.CFrame = CFrame.fromMatrix(pos + upV*(2), rightV, upV) |
| 118 | cut.BrickColor = BrickColor.new("Gold") |
| 119 | cut.Material = Enum.Material.Glacier |
| 120 | cut.MaterialVariant = "2022 Stud" |
| 121 | cut.Anchored = true; cut.Parent = workspace |
| 122 | table.insert(cuts, cut) |
| 123 | end |
| 124 | if #cuts > 0 then |
| 125 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 126 | for _, c in ipairs(cuts) do c:Destroy() end |
| 127 | if ok and result then |
| 128 | ball:Destroy() |
| 129 | result.Name = "BottomDome"; result.Anchored = true; result.Parent = model |
| 130 | else |
| 131 | ball.Name = "BottomDome"; ball.Parent = model |
| 132 | end |
| 133 | else |
| 134 | ball.Name = "BottomDome"; ball.Parent = model |
| 135 | end |
| 136 | end |
| 137 | model.PrimaryPart = model:FindFirstChild("HeadCore") |
| 138 | print("GoldStudHead built: " .. #model:GetChildren() .. " parts") |
Loading comments...