Loading model...
by Stefan Grabowski · 9/3/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: YinYang |
| 3 | |
| 4 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 5 | -- Model: YinYang |
| 6 | |
| 7 | local MS = game:GetService("MaterialService") |
| 8 | |
| 9 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 10 | if not ok then return warn(roots) end |
| 11 | |
| 12 | local tmp = Instance.new("Folder") |
| 13 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 14 | |
| 15 | for _, d in ipairs(tmp:GetDescendants()) do |
| 16 | if d:IsA("MaterialVariant") then |
| 17 | d.Parent = MS |
| 18 | end |
| 19 | end |
| 20 | tmp:Destroy() |
| 21 | |
| 22 | local model = Instance.new("Model") |
| 23 | model.Name = "YinYang" |
| 24 | model.Parent = workspace |
| 25 | |
| 26 | local variants = { |
| 27 | ["Institutional white"] = "2022 Stud", |
| 28 | ["Really black"] = "2022 Universal", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Shape = Enum.PartType.Cylinder |
| 33 | p.Name = "MidWhite" |
| 34 | p.Size = Vector3.new(1.2, 10, 10) |
| 35 | p.CFrame = CFrame.new(0, 5, -0.14) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 36 | p.BrickColor = BrickColor.new("Institutional white") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Shape = Enum.PartType.Cylinder |
| 45 | p.Name = "MidBlack" |
| 46 | p.Size = Vector3.new(1.2, 10, 10) |
| 47 | p.CFrame = CFrame.new(0, -5, -0.14) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 48 | p.BrickColor = BrickColor.new("Really black") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 Universal" |
| 51 | p.Anchored = true |
| 52 | p.Parent = model |
| 53 | end |
| 54 | do |
| 55 | local p = Instance.new("Part") |
| 56 | p.Shape = Enum.PartType.Cylinder |
| 57 | p.Name = "DotBlack" |
| 58 | p.Size = Vector3.new(1.4, 3, 3) |
| 59 | p.CFrame = CFrame.new(0, 5, -0.28) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 60 | p.BrickColor = BrickColor.new("Really black") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 Universal" |
| 63 | p.Anchored = true |
| 64 | p.Parent = model |
| 65 | end |
| 66 | do |
| 67 | local p = Instance.new("Part") |
| 68 | p.Shape = Enum.PartType.Cylinder |
| 69 | p.Name = "DotWhite" |
| 70 | p.Size = Vector3.new(1.4, 3, 3) |
| 71 | p.CFrame = CFrame.new(0, -5, -0.28) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 72 | p.BrickColor = BrickColor.new("Institutional white") |
| 73 | p.Material = Enum.Material.Glacier |
| 74 | p.MaterialVariant = "2022 Stud" |
| 75 | p.Anchored = true |
| 76 | p.Parent = model |
| 77 | end |
| 78 | do |
| 79 | local rightV = Vector3.new(0,-1,0).Unit |
| 80 | local upV = (Vector3.new(-1,0,0) - Vector3.new(-1,0,0):Dot(rightV)*rightV).Unit |
| 81 | local normalV = upV:Cross(rightV) |
| 82 | local pos = Vector3.new(0.04, 0, 0.04) |
| 83 | local cyl = Instance.new("Part") |
| 84 | cyl.Shape = Enum.PartType.Cylinder |
| 85 | cyl.Size = Vector3.new(1, 20, 20) |
| 86 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 87 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 88 | cyl.Material = Enum.Material.Glacier |
| 89 | cyl.MaterialVariant = "2022 Stud" |
| 90 | cyl.Anchored = true; cyl.Parent = workspace |
| 91 | local cuts = {} |
| 92 | local angBoxes = {} |
| 93 | do |
| 94 | local edgeDir = 1*rightV + 0*upV |
| 95 | local edgePerp = 0*rightV + 1*upV |
| 96 | local cut = Instance.new("Part") |
| 97 | cut.Size = Vector3.new(40, 1.2, 40) |
| 98 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 99 | cut.BrickColor = BrickColor.new("Institutional white") |
| 100 | cut.Material = Enum.Material.Glacier |
| 101 | cut.MaterialVariant = "2022 Stud" |
| 102 | cut.Anchored = true; cut.Parent = workspace |
| 103 | table.insert(angBoxes, cut) |
| 104 | end |
| 105 | do |
| 106 | local edgeDir = -1*rightV + 0*upV |
| 107 | local edgePerp = 0*rightV + -1*upV |
| 108 | local cut = Instance.new("Part") |
| 109 | cut.Size = Vector3.new(40, 1.2, 40) |
| 110 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 111 | cut.BrickColor = BrickColor.new("Institutional white") |
| 112 | cut.Material = Enum.Material.Glacier |
| 113 | cut.MaterialVariant = "2022 Stud" |
| 114 | cut.Anchored = true; cut.Parent = workspace |
| 115 | table.insert(angBoxes, cut) |
| 116 | end |
| 117 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 118 | if #cuts > 0 then |
| 119 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 120 | for _, c in ipairs(cuts) do c:Destroy() end |
| 121 | if ok and result then |
| 122 | cyl:Destroy() |
| 123 | result.Name = "BaseWhite"; result.Anchored = true; result.Parent = model |
| 124 | else |
| 125 | cyl.Name = "BaseWhite"; cyl.Parent = model |
| 126 | end |
| 127 | else |
| 128 | cyl.Name = "BaseWhite"; cyl.Parent = model |
| 129 | end |
| 130 | end |
| 131 | do |
| 132 | local rightV = Vector3.new(0,1,0).Unit |
| 133 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 134 | local normalV = upV:Cross(rightV) |
| 135 | local pos = Vector3.new(0, 0, 0) |
| 136 | local cyl = Instance.new("Part") |
| 137 | cyl.Shape = Enum.PartType.Cylinder |
| 138 | cyl.Size = Vector3.new(1, 20, 20) |
| 139 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 140 | cyl.BrickColor = BrickColor.new("Really black") |
| 141 | cyl.Material = Enum.Material.Glacier |
| 142 | cyl.MaterialVariant = "2022 Universal" |
| 143 | cyl.Anchored = true; cyl.Parent = workspace |
| 144 | local cuts = {} |
| 145 | local angBoxes = {} |
| 146 | do |
| 147 | local edgeDir = 1*rightV + 0*upV |
| 148 | local edgePerp = 0*rightV + 1*upV |
| 149 | local cut = Instance.new("Part") |
| 150 | cut.Size = Vector3.new(40, 1.2, 40) |
| 151 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 152 | cut.BrickColor = BrickColor.new("Really black") |
| 153 | cut.Material = Enum.Material.Glacier |
| 154 | cut.MaterialVariant = "2022 Universal" |
| 155 | cut.Anchored = true; cut.Parent = workspace |
| 156 | table.insert(angBoxes, cut) |
| 157 | end |
| 158 | do |
| 159 | local edgeDir = -1*rightV + 0*upV |
| 160 | local edgePerp = 0*rightV + -1*upV |
| 161 | local cut = Instance.new("Part") |
| 162 | cut.Size = Vector3.new(40, 1.2, 40) |
| 163 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 164 | cut.BrickColor = BrickColor.new("Really black") |
| 165 | cut.Material = Enum.Material.Glacier |
| 166 | cut.MaterialVariant = "2022 Universal" |
| 167 | cut.Anchored = true; cut.Parent = workspace |
| 168 | table.insert(angBoxes, cut) |
| 169 | end |
| 170 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 171 | if #cuts > 0 then |
| 172 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 173 | for _, c in ipairs(cuts) do c:Destroy() end |
| 174 | if ok and result then |
| 175 | cyl:Destroy() |
| 176 | result.Name = "BaseBlack"; result.Anchored = true; result.Parent = model |
| 177 | else |
| 178 | cyl.Name = "BaseBlack"; cyl.Parent = model |
| 179 | end |
| 180 | else |
| 181 | cyl.Name = "BaseBlack"; cyl.Parent = model |
| 182 | end |
| 183 | end |
| 184 | do |
| 185 | local rightV = Vector3.new(1,0,0).Unit |
| 186 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 187 | local normalV = upV:Cross(rightV) |
| 188 | local pos = Vector3.new(0, 0.04, -0.12) |
| 189 | local cyl = Instance.new("Part") |
| 190 | cyl.Shape = Enum.PartType.Cylinder |
| 191 | cyl.Size = Vector3.new(1, 20.4, 20.4) |
| 192 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 193 | cyl.BrickColor = BrickColor.new("Really black") |
| 194 | cyl.Material = Enum.Material.Glacier |
| 195 | cyl.MaterialVariant = "2022 Universal" |
| 196 | cyl.Anchored = true; cyl.Parent = workspace |
| 197 | local cuts = {} |
| 198 | local hole = Instance.new("Part") |
| 199 | hole.Shape = Enum.PartType.Cylinder |
| 200 | hole.Size = Vector3.new(1.2, 20, 20) |
| 201 | hole.CFrame = cyl.CFrame |
| 202 | hole.BrickColor = BrickColor.new("Really black") |
| 203 | hole.Material = Enum.Material.Glacier |
| 204 | hole.MaterialVariant = "2022 Universal" |
| 205 | hole.Anchored = true; hole.Parent = workspace |
| 206 | table.insert(cuts, hole) |
| 207 | local angBoxes = {} |
| 208 | do |
| 209 | local edgeDir = 1*rightV + 0*upV |
| 210 | local edgePerp = 0*rightV + 1*upV |
| 211 | local cut = Instance.new("Part") |
| 212 | cut.Size = Vector3.new(40.8, 1.2, 40.8) |
| 213 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20.4 * edgePerp, edgeDir, normalV) |
| 214 | cut.BrickColor = BrickColor.new("Really black") |
| 215 | cut.Material = Enum.Material.Glacier |
| 216 | cut.MaterialVariant = "2022 Universal" |
| 217 | cut.Anchored = true; cut.Parent = workspace |
| 218 | table.insert(angBoxes, cut) |
| 219 | end |
| 220 | do |
| 221 | local edgeDir = -1*rightV + 0*upV |
| 222 | local edgePerp = 0*rightV + -1*upV |
| 223 | local cut = Instance.new("Part") |
| 224 | cut.Size = Vector3.new(40.8, 1.2, 40.8) |
| 225 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20.4 * edgePerp, edgeDir, normalV) |
| 226 | cut.BrickColor = BrickColor.new("Really black") |
| 227 | cut.Material = Enum.Material.Glacier |
| 228 | cut.MaterialVariant = "2022 Universal" |
| 229 | cut.Anchored = true; cut.Parent = workspace |
| 230 | table.insert(angBoxes, cut) |
| 231 | end |
| 232 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 233 | if #cuts > 0 then |
| 234 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 235 | for _, c in ipairs(cuts) do c:Destroy() end |
| 236 | if ok and result then |
| 237 | cyl:Destroy() |
| 238 | result.Name = "OutlineTop"; result.Anchored = true; result.Parent = model |
| 239 | else |
| 240 | cyl.Name = "OutlineTop"; cyl.Parent = model |
| 241 | end |
| 242 | else |
| 243 | cyl.Name = "OutlineTop"; cyl.Parent = model |
| 244 | end |
| 245 | end |
| 246 | do |
| 247 | local rightV = Vector3.new(-1,0,0).Unit |
| 248 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 249 | local normalV = upV:Cross(rightV) |
| 250 | local pos = Vector3.new(0, 0, -0.12) |
| 251 | local cyl = Instance.new("Part") |
| 252 | cyl.Shape = Enum.PartType.Cylinder |
| 253 | cyl.Size = Vector3.new(1, 20.4, 20.4) |
| 254 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 255 | cyl.BrickColor = BrickColor.new("Really black") |
| 256 | cyl.Material = Enum.Material.Glacier |
| 257 | cyl.MaterialVariant = "2022 Universal" |
| 258 | cyl.Anchored = true; cyl.Parent = workspace |
| 259 | local cuts = {} |
| 260 | local hole = Instance.new("Part") |
| 261 | hole.Shape = Enum.PartType.Cylinder |
| 262 | hole.Size = Vector3.new(1.2, 20, 20) |
| 263 | hole.CFrame = cyl.CFrame |
| 264 | hole.BrickColor = BrickColor.new("Really black") |
| 265 | hole.Material = Enum.Material.Glacier |
| 266 | hole.MaterialVariant = "2022 Universal" |
| 267 | hole.Anchored = true; hole.Parent = workspace |
| 268 | table.insert(cuts, hole) |
| 269 | local angBoxes = {} |
| 270 | do |
| 271 | local edgeDir = 1*rightV + 0*upV |
| 272 | local edgePerp = 0*rightV + 1*upV |
| 273 | local cut = Instance.new("Part") |
| 274 | cut.Size = Vector3.new(40.8, 1.2, 40.8) |
| 275 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20.4 * edgePerp, edgeDir, normalV) |
| 276 | cut.BrickColor = BrickColor.new("Really black") |
| 277 | cut.Material = Enum.Material.Glacier |
| 278 | cut.MaterialVariant = "2022 Universal" |
| 279 | cut.Anchored = true; cut.Parent = workspace |
| 280 | table.insert(angBoxes, cut) |
| 281 | end |
| 282 | do |
| 283 | local edgeDir = -1*rightV + 0*upV |
| 284 | local edgePerp = 0*rightV + -1*upV |
| 285 | local cut = Instance.new("Part") |
| 286 | cut.Size = Vector3.new(40.8, 1.2, 40.8) |
| 287 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20.4 * edgePerp, edgeDir, normalV) |
| 288 | cut.BrickColor = BrickColor.new("Really black") |
| 289 | cut.Material = Enum.Material.Glacier |
| 290 | cut.MaterialVariant = "2022 Universal" |
| 291 | cut.Anchored = true; cut.Parent = workspace |
| 292 | table.insert(angBoxes, cut) |
| 293 | end |
| 294 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 295 | if #cuts > 0 then |
| 296 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 297 | for _, c in ipairs(cuts) do c:Destroy() end |
| 298 | if ok and result then |
| 299 | cyl:Destroy() |
| 300 | result.Name = "OutlineBot"; result.Anchored = true; result.Parent = model |
| 301 | else |
| 302 | cyl.Name = "OutlineBot"; cyl.Parent = model |
| 303 | end |
| 304 | else |
| 305 | cyl.Name = "OutlineBot"; cyl.Parent = model |
| 306 | end |
| 307 | end |
| 308 | model.PrimaryPart = model:FindFirstChild("MidWhite") |
| 309 | print("YinYang built: " .. #model:GetChildren() .. " parts") |
Loading comments...