Loading model...
by Mr. Bugs · 8/22/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: ScalesOfJustice |
| 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 = "ScalesOfJustice" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright yellow"] = "2022 Big Stud", |
| 25 | ["Dark Curry"] = "2022 Stud", |
| 26 | ["Gold"] = "2022 Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Shape = Enum.PartType.Cylinder |
| 31 | p.Name = "BaseCenter" |
| 32 | p.Size = Vector3.new(0.5, 6, 6) |
| 33 | p.CFrame = CFrame.new(0, 0.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 34 | p.BrickColor = BrickColor.new("Bright yellow") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Big 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 = "BaseLobe_F" |
| 44 | p.Size = Vector3.new(0.5, 3.96, 3.96) |
| 45 | p.CFrame = CFrame.new(0, 0.29, -3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 46 | p.BrickColor = BrickColor.new("Bright yellow") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Big 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 = "BaseLobe_B" |
| 56 | p.Size = Vector3.new(0.5, 3.96, 3.96) |
| 57 | p.CFrame = CFrame.new(0, 0.29, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 58 | p.BrickColor = BrickColor.new("Bright yellow") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Big 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 = "BaseLobe_L" |
| 68 | p.Size = Vector3.new(0.5, 4, 4) |
| 69 | p.CFrame = CFrame.new(-3, 0.17, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 70 | p.BrickColor = BrickColor.new("Bright yellow") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Big Stud" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local p = Instance.new("Part") |
| 78 | p.Shape = Enum.PartType.Cylinder |
| 79 | p.Name = "BaseLobe_R" |
| 80 | p.Size = Vector3.new(0.5, 4, 4) |
| 81 | p.CFrame = CFrame.new(3, 0.17, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 82 | p.BrickColor = BrickColor.new("Bright yellow") |
| 83 | p.Material = Enum.Material.Glacier |
| 84 | p.MaterialVariant = "2022 Big Stud" |
| 85 | p.Anchored = true |
| 86 | p.Parent = model |
| 87 | end |
| 88 | do |
| 89 | local p = Instance.new("Part") |
| 90 | p.Shape = Enum.PartType.Cylinder |
| 91 | p.Name = "BaseTier2" |
| 92 | p.Size = Vector3.new(0.5, 4, 4) |
| 93 | p.CFrame = CFrame.new(0, 0.79, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 94 | p.BrickColor = BrickColor.new("Bright yellow") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Big Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Shape = Enum.PartType.Cylinder |
| 103 | p.Name = "PillarBaseRing" |
| 104 | p.Size = Vector3.new(0.4, 2.2, 2.2) |
| 105 | p.CFrame = CFrame.new(0, 1.28, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 106 | p.BrickColor = BrickColor.new("Gold") |
| 107 | p.Material = Enum.Material.Glacier |
| 108 | p.MaterialVariant = "2022 Stud" |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Shape = Enum.PartType.Cylinder |
| 115 | p.Name = "PillarLower" |
| 116 | p.Size = Vector3.new(7, 1.4, 1.4) |
| 117 | p.CFrame = CFrame.new(0, 4.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 118 | p.BrickColor = BrickColor.new("Bright yellow") |
| 119 | p.Material = Enum.Material.Glacier |
| 120 | p.MaterialVariant = "2022 Big Stud" |
| 121 | p.Anchored = true |
| 122 | p.Parent = model |
| 123 | end |
| 124 | do |
| 125 | local p = Instance.new("Part") |
| 126 | p.Name = "PillarMidBlock" |
| 127 | p.Size = Vector3.new(2, 1.8, 1.8) |
| 128 | p.CFrame = CFrame.new(0, 8.5, 0) |
| 129 | p.BrickColor = BrickColor.new("Gold") |
| 130 | p.Material = Enum.Material.Glacier |
| 131 | p.MaterialVariant = "2022 Stud" |
| 132 | p.Anchored = true |
| 133 | p.Parent = model |
| 134 | end |
| 135 | do |
| 136 | local p = Instance.new("Part") |
| 137 | p.Shape = Enum.PartType.Cylinder |
| 138 | p.Name = "PillarUpper" |
| 139 | p.Size = Vector3.new(5, 1.16, 1.16) |
| 140 | p.CFrame = CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 141 | p.BrickColor = BrickColor.new("Bright yellow") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Big Stud" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Name = "PillarTopPivot" |
| 150 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 151 | p.CFrame = CFrame.new(0, 14.5, 0) |
| 152 | p.BrickColor = BrickColor.new("Gold") |
| 153 | p.Material = Enum.Material.Glacier |
| 154 | p.MaterialVariant = "2022 Stud" |
| 155 | p.Anchored = true |
| 156 | p.Parent = model |
| 157 | end |
| 158 | do |
| 159 | local p = Instance.new("Part") |
| 160 | p.Shape = Enum.PartType.Cylinder |
| 161 | p.Name = "PillarFinialNeck" |
| 162 | p.Size = Vector3.new(0.5, 0.8, 0.8) |
| 163 | p.CFrame = CFrame.new(0, 15.54, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 164 | p.BrickColor = BrickColor.new("Bright yellow") |
| 165 | p.Material = Enum.Material.Glacier |
| 166 | p.MaterialVariant = "2022 Big Stud" |
| 167 | p.Anchored = true |
| 168 | p.Parent = model |
| 169 | end |
| 170 | do |
| 171 | local p = Instance.new("Part") |
| 172 | p.Name = "PillarFinialHead" |
| 173 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 174 | p.CFrame = CFrame.new(0, 16.5, 0) |
| 175 | p.BrickColor = BrickColor.new("Bright yellow") |
| 176 | p.Material = Enum.Material.Glacier |
| 177 | p.MaterialVariant = "2022 Big Stud" |
| 178 | p.Anchored = true |
| 179 | p.Parent = model |
| 180 | end |
| 181 | do |
| 182 | local p = Instance.new("Part") |
| 183 | p.Shape = Enum.PartType.Cylinder |
| 184 | p.Name = "CrossbarPivot" |
| 185 | p.Size = Vector3.new(2.2, 1.2, 1.2) |
| 186 | p.CFrame = CFrame.new(0, 14.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 187 | p.BrickColor = BrickColor.new("Bright yellow") |
| 188 | p.Material = Enum.Material.Glacier |
| 189 | p.MaterialVariant = "2022 Big Stud" |
| 190 | p.Anchored = true |
| 191 | p.Parent = model |
| 192 | end |
| 193 | do |
| 194 | local p = Instance.new("Part") |
| 195 | p.Name = "BeamLeft" |
| 196 | p.Size = Vector3.new(8, 1, 1) |
| 197 | p.CFrame = CFrame.new(-4.00068, 15.0623, -0.16) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-172)) |
| 198 | p.BrickColor = BrickColor.new("Bright yellow") |
| 199 | p.Material = Enum.Material.Glacier |
| 200 | p.MaterialVariant = "2022 Big Stud" |
| 201 | p.Anchored = true |
| 202 | p.Parent = model |
| 203 | end |
| 204 | do |
| 205 | local p = Instance.new("Part") |
| 206 | p.Name = "BeamLeftEnd" |
| 207 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 208 | p.CFrame = CFrame.new(-7.92215, 15.6134, 0.04) |
| 209 | p.BrickColor = BrickColor.new("Gold") |
| 210 | p.Material = Enum.Material.Glacier |
| 211 | p.MaterialVariant = "2022 Stud" |
| 212 | p.Anchored = true |
| 213 | p.Parent = model |
| 214 | end |
| 215 | do |
| 216 | local p = Instance.new("Part") |
| 217 | p.Name = "BeamRight" |
| 218 | p.Size = Vector3.new(8, 1, 1) |
| 219 | p.CFrame = CFrame.new(4.00068, 13.9489, -0.16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)) |
| 220 | p.BrickColor = BrickColor.new("Bright yellow") |
| 221 | p.Material = Enum.Material.Glacier |
| 222 | p.MaterialVariant = "2022 Big Stud" |
| 223 | p.Anchored = true |
| 224 | p.Parent = model |
| 225 | end |
| 226 | do |
| 227 | local p = Instance.new("Part") |
| 228 | p.Name = "BeamRightEnd" |
| 229 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 230 | p.CFrame = CFrame.new(7.92215, 13.3866, 0.04) |
| 231 | p.BrickColor = BrickColor.new("Gold") |
| 232 | p.Material = Enum.Material.Glacier |
| 233 | p.MaterialVariant = "2022 Stud" |
| 234 | p.Anchored = true |
| 235 | p.Parent = model |
| 236 | end |
| 237 | do |
| 238 | local p = Instance.new("Part") |
| 239 | p.Name = "PanLeft_Rod_0" |
| 240 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 241 | p.CFrame = CFrame.new(-6.42215, 12.1134, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-66.8014)) |
| 242 | p.BrickColor = BrickColor.new("Gold") |
| 243 | p.Material = Enum.Material.Glacier |
| 244 | p.MaterialVariant = "2022 Stud" |
| 245 | p.Anchored = true |
| 246 | p.Parent = model |
| 247 | end |
| 248 | do |
| 249 | local p = Instance.new("Part") |
| 250 | p.Name = "PanLeft_Rod_1" |
| 251 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 252 | p.CFrame = CFrame.new(-9.42215, 12.1134, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(113.199)) |
| 253 | p.BrickColor = BrickColor.new("Gold") |
| 254 | p.Material = Enum.Material.Glacier |
| 255 | p.MaterialVariant = "2022 Stud" |
| 256 | p.Anchored = true |
| 257 | p.Parent = model |
| 258 | end |
| 259 | do |
| 260 | local p = Instance.new("Part") |
| 261 | p.Name = "PanLeft_Rod_2" |
| 262 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 263 | p.CFrame = CFrame.new(-7.92215, 12.1134, 1.5) * CFrame.Angles(math.rad(66.8014), math.rad(-90), math.rad(0)) |
| 264 | p.BrickColor = BrickColor.new("Gold") |
| 265 | p.Material = Enum.Material.Glacier |
| 266 | p.MaterialVariant = "2022 Stud" |
| 267 | p.Anchored = true |
| 268 | p.Parent = model |
| 269 | end |
| 270 | do |
| 271 | local p = Instance.new("Part") |
| 272 | p.Name = "PanLeft_Rod_3" |
| 273 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 274 | p.CFrame = CFrame.new(-7.92215, 12.1134, -1.5) * CFrame.Angles(math.rad(-66.8014), math.rad(90), math.rad(0)) |
| 275 | p.BrickColor = BrickColor.new("Gold") |
| 276 | p.Material = Enum.Material.Glacier |
| 277 | p.MaterialVariant = "2022 Stud" |
| 278 | p.Anchored = true |
| 279 | p.Parent = model |
| 280 | end |
| 281 | do |
| 282 | local p = Instance.new("Part") |
| 283 | p.Shape = Enum.PartType.Cylinder |
| 284 | p.Name = "PanLeft_Rim" |
| 285 | p.Size = Vector3.new(0.6, 7.2, 7.2) |
| 286 | p.CFrame = CFrame.new(-7.92215, 8.61338, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 287 | p.BrickColor = BrickColor.new("Bright yellow") |
| 288 | p.Material = Enum.Material.Glacier |
| 289 | p.MaterialVariant = "2022 Big Stud" |
| 290 | p.Anchored = true |
| 291 | p.Parent = model |
| 292 | end |
| 293 | do |
| 294 | local p = Instance.new("Part") |
| 295 | p.Shape = Enum.PartType.Cylinder |
| 296 | p.Name = "PanLeft_Floor" |
| 297 | p.Size = Vector3.new(0.2, 6.8, 6.8) |
| 298 | p.CFrame = CFrame.new(-7.92215, 8.51338, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 299 | p.BrickColor = BrickColor.new("Bright yellow") |
| 300 | p.Material = Enum.Material.Glacier |
| 301 | p.MaterialVariant = "2022 Big Stud" |
| 302 | p.Anchored = true |
| 303 | p.Parent = model |
| 304 | end |
| 305 | do |
| 306 | local p = Instance.new("Part") |
| 307 | p.Name = "PanRight_Rod_0" |
| 308 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 309 | p.CFrame = CFrame.new(9.42215, 9.88662, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-66.8014)) |
| 310 | p.BrickColor = BrickColor.new("Gold") |
| 311 | p.Material = Enum.Material.Glacier |
| 312 | p.MaterialVariant = "2022 Stud" |
| 313 | p.Anchored = true |
| 314 | p.Parent = model |
| 315 | end |
| 316 | do |
| 317 | local p = Instance.new("Part") |
| 318 | p.Name = "PanRight_Rod_1" |
| 319 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 320 | p.CFrame = CFrame.new(6.42215, 9.88662, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(113.199)) |
| 321 | p.BrickColor = BrickColor.new("Gold") |
| 322 | p.Material = Enum.Material.Glacier |
| 323 | p.MaterialVariant = "2022 Stud" |
| 324 | p.Anchored = true |
| 325 | p.Parent = model |
| 326 | end |
| 327 | do |
| 328 | local p = Instance.new("Part") |
| 329 | p.Name = "PanRight_Rod_2" |
| 330 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 331 | p.CFrame = CFrame.new(7.92215, 9.88662, 1.5) * CFrame.Angles(math.rad(66.8014), math.rad(-90), math.rad(0)) |
| 332 | p.BrickColor = BrickColor.new("Gold") |
| 333 | p.Material = Enum.Material.Glacier |
| 334 | p.MaterialVariant = "2022 Stud" |
| 335 | p.Anchored = true |
| 336 | p.Parent = model |
| 337 | end |
| 338 | do |
| 339 | local p = Instance.new("Part") |
| 340 | p.Name = "PanRight_Rod_3" |
| 341 | p.Size = Vector3.new(7.61577, 0.25, 0.25) |
| 342 | p.CFrame = CFrame.new(7.92215, 9.88662, -1.5) * CFrame.Angles(math.rad(-66.8014), math.rad(90), math.rad(0)) |
| 343 | p.BrickColor = BrickColor.new("Gold") |
| 344 | p.Material = Enum.Material.Glacier |
| 345 | p.MaterialVariant = "2022 Stud" |
| 346 | p.Anchored = true |
| 347 | p.Parent = model |
| 348 | end |
| 349 | do |
| 350 | local p = Instance.new("Part") |
| 351 | p.Shape = Enum.PartType.Cylinder |
| 352 | p.Name = "PanRight_Rim" |
| 353 | p.Size = Vector3.new(0.6, 7.2, 7.2) |
| 354 | p.CFrame = CFrame.new(7.92215, 6.38661, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 355 | p.BrickColor = BrickColor.new("Bright yellow") |
| 356 | p.Material = Enum.Material.Glacier |
| 357 | p.MaterialVariant = "2022 Big Stud" |
| 358 | p.Anchored = true |
| 359 | p.Parent = model |
| 360 | end |
| 361 | do |
| 362 | local p = Instance.new("Part") |
| 363 | p.Shape = Enum.PartType.Cylinder |
| 364 | p.Name = "PanRight_Floor" |
| 365 | p.Size = Vector3.new(0.2, 6.8, 6.8) |
| 366 | p.CFrame = CFrame.new(7.92215, 6.28662, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 367 | p.BrickColor = BrickColor.new("Bright yellow") |
| 368 | p.Material = Enum.Material.Glacier |
| 369 | p.MaterialVariant = "2022 Big Stud" |
| 370 | p.Anchored = true |
| 371 | p.Parent = model |
| 372 | end |
| 373 | do |
| 374 | local p = Instance.new("Part") |
| 375 | p.Name = "RivetL" |
| 376 | p.Size = Vector3.new(0.2, 0.5, 0.5) |
| 377 | p.CFrame = CFrame.new(-0.98, 8.5, 0) |
| 378 | p.BrickColor = BrickColor.new("Dark Curry") |
| 379 | p.Material = Enum.Material.Glacier |
| 380 | p.MaterialVariant = "2022 Stud" |
| 381 | p.Anchored = true |
| 382 | p.Parent = model |
| 383 | end |
| 384 | do |
| 385 | local p = Instance.new("Part") |
| 386 | p.Name = "RivetR" |
| 387 | p.Size = Vector3.new(0.2, 0.5, 0.5) |
| 388 | p.CFrame = CFrame.new(0.98, 8.5, 0) |
| 389 | p.BrickColor = BrickColor.new("Dark Curry") |
| 390 | p.Material = Enum.Material.Glacier |
| 391 | p.MaterialVariant = "2022 Stud" |
| 392 | p.Anchored = true |
| 393 | p.Parent = model |
| 394 | end |
| 395 | do |
| 396 | local p = Instance.new("Part") |
| 397 | p.Name = "RivetF" |
| 398 | p.Size = Vector3.new(0.5, 0.5, 0.2) |
| 399 | p.CFrame = CFrame.new(0, 8.5, -0.9) |
| 400 | p.BrickColor = BrickColor.new("Dark Curry") |
| 401 | p.Material = Enum.Material.Glacier |
| 402 | p.MaterialVariant = "2022 Stud" |
| 403 | p.Anchored = true |
| 404 | p.Parent = model |
| 405 | end |
| 406 | do |
| 407 | local p = Instance.new("Part") |
| 408 | p.Name = "RivetB" |
| 409 | p.Size = Vector3.new(0.5, 0.5, 0.2) |
| 410 | p.CFrame = CFrame.new(0, 8.5, 0.9) |
| 411 | p.BrickColor = BrickColor.new("Dark Curry") |
| 412 | p.Material = Enum.Material.Glacier |
| 413 | p.MaterialVariant = "2022 Stud" |
| 414 | p.Anchored = true |
| 415 | p.Parent = model |
| 416 | end |
| 417 | do |
| 418 | local upV = Vector3.new(0,1,0).Unit |
| 419 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 420 | local forwardV = rightV:Cross(upV) |
| 421 | local pos = Vector3.new(-7.92215, 8.11338, 0) |
| 422 | local ball = Instance.new("Part") |
| 423 | ball.Shape = Enum.PartType.Ball |
| 424 | ball.Size = Vector3.new(7, 7, 7) |
| 425 | ball.CFrame = CFrame.new(pos) |
| 426 | ball.BrickColor = BrickColor.new("Bright yellow") |
| 427 | ball.Material = Enum.Material.Glacier |
| 428 | ball.MaterialVariant = "2022 Big Stud" |
| 429 | ball.Anchored = true; ball.Parent = workspace |
| 430 | local cuts = {} |
| 431 | local hole = Instance.new("Part") |
| 432 | hole.Shape = Enum.PartType.Ball |
| 433 | hole.Size = Vector3.new(6.4, 6.4, 6.4) |
| 434 | hole.CFrame = CFrame.new(pos) |
| 435 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 436 | hole.Material = Enum.Material.Glacier |
| 437 | hole.MaterialVariant = "2022 Big Stud" |
| 438 | hole.Anchored = true; hole.Parent = workspace |
| 439 | table.insert(cuts, hole) |
| 440 | do |
| 441 | local h = 0 |
| 442 | local cut = Instance.new("Part") |
| 443 | cut.Size = Vector3.new(14, 14, 14) |
| 444 | cut.CFrame = CFrame.fromMatrix(pos + upV*(7), rightV, upV) |
| 445 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 446 | cut.Material = Enum.Material.Glacier |
| 447 | cut.MaterialVariant = "2022 Big Stud" |
| 448 | cut.Anchored = true; cut.Parent = workspace |
| 449 | table.insert(cuts, cut) |
| 450 | end |
| 451 | if #cuts > 0 then |
| 452 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 453 | for _, c in ipairs(cuts) do c:Destroy() end |
| 454 | if ok and result then |
| 455 | ball:Destroy() |
| 456 | result.Name = "PanLeft_Bowl"; result.Anchored = true; result.Parent = model |
| 457 | else |
| 458 | ball.Name = "PanLeft_Bowl"; ball.Parent = model |
| 459 | end |
| 460 | else |
| 461 | ball.Name = "PanLeft_Bowl"; ball.Parent = model |
| 462 | end |
| 463 | end |
| 464 | do |
| 465 | local upV = Vector3.new(0,1,0).Unit |
| 466 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 467 | local forwardV = rightV:Cross(upV) |
| 468 | local pos = Vector3.new(7.92215, 5.88661, 0) |
| 469 | local ball = Instance.new("Part") |
| 470 | ball.Shape = Enum.PartType.Ball |
| 471 | ball.Size = Vector3.new(7, 7, 7) |
| 472 | ball.CFrame = CFrame.new(pos) |
| 473 | ball.BrickColor = BrickColor.new("Bright yellow") |
| 474 | ball.Material = Enum.Material.Glacier |
| 475 | ball.MaterialVariant = "2022 Big Stud" |
| 476 | ball.Anchored = true; ball.Parent = workspace |
| 477 | local cuts = {} |
| 478 | local hole = Instance.new("Part") |
| 479 | hole.Shape = Enum.PartType.Ball |
| 480 | hole.Size = Vector3.new(6.4, 6.4, 6.4) |
| 481 | hole.CFrame = CFrame.new(pos) |
| 482 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 483 | hole.Material = Enum.Material.Glacier |
| 484 | hole.MaterialVariant = "2022 Big Stud" |
| 485 | hole.Anchored = true; hole.Parent = workspace |
| 486 | table.insert(cuts, hole) |
| 487 | do |
| 488 | local h = 0 |
| 489 | local cut = Instance.new("Part") |
| 490 | cut.Size = Vector3.new(14, 14, 14) |
| 491 | cut.CFrame = CFrame.fromMatrix(pos + upV*(7), rightV, upV) |
| 492 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 493 | cut.Material = Enum.Material.Glacier |
| 494 | cut.MaterialVariant = "2022 Big Stud" |
| 495 | cut.Anchored = true; cut.Parent = workspace |
| 496 | table.insert(cuts, cut) |
| 497 | end |
| 498 | if #cuts > 0 then |
| 499 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 500 | for _, c in ipairs(cuts) do c:Destroy() end |
| 501 | if ok and result then |
| 502 | ball:Destroy() |
| 503 | result.Name = "PanRight_Bowl"; result.Anchored = true; result.Parent = model |
| 504 | else |
| 505 | ball.Name = "PanRight_Bowl"; ball.Parent = model |
| 506 | end |
| 507 | else |
| 508 | ball.Name = "PanRight_Bowl"; ball.Parent = model |
| 509 | end |
| 510 | end |
| 511 | model.PrimaryPart = model:FindFirstChild("PillarLower") |
| 512 | print("ScalesOfJustice built: " .. #model:GetChildren() .. " parts") |
Loading comments...