Loading model...
by Rublax · 5/25/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PrizeWheel |
| 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 = "PrizeWheel" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright green"] = "2022 Stud", |
| 25 | ["Bright yellow"] = "2022 Big Stud", |
| 26 | ["Institutional white"] = "2022 Stud", |
| 27 | ["Navy blue"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "BaseYellow" |
| 33 | p.Size = Vector3.new(2, 26, 26) |
| 34 | p.CFrame = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Bright yellow") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Big Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Shape = Enum.PartType.Cylinder |
| 44 | p.Name = "BaseBlue" |
| 45 | p.Size = Vector3.new(2, 24, 24) |
| 46 | p.CFrame = CFrame.new(0, 3.04, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 47 | p.BrickColor = BrickColor.new("Navy blue") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Shape = Enum.PartType.Cylinder |
| 56 | p.Name = "WheelRim" |
| 57 | p.Size = Vector3.new(2, 22, 22) |
| 58 | p.CFrame = CFrame.new(0, 15, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 59 | p.BrickColor = BrickColor.new("Navy blue") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Stud" |
| 62 | p.Anchored = true |
| 63 | p.Parent = model |
| 64 | end |
| 65 | do |
| 66 | local p = Instance.new("Part") |
| 67 | p.Shape = Enum.PartType.Cylinder |
| 68 | p.Name = "WheelWhite" |
| 69 | p.Size = Vector3.new(1.2, 20, 20) |
| 70 | p.CFrame = CFrame.new(0, 15, -0.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 71 | p.BrickColor = BrickColor.new("Institutional white") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Stud" |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Shape = Enum.PartType.Cylinder |
| 80 | p.Name = "WheelHub" |
| 81 | p.Size = Vector3.new(0.5, 3, 3) |
| 82 | p.CFrame = CFrame.new(0, 15, -1.2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 83 | p.BrickColor = BrickColor.new("Bright yellow") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Big Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Name = "PointerDiamond" |
| 92 | p.Size = Vector3.new(3.5, 3.5, 1) |
| 93 | p.CFrame = CFrame.new(0, 26.5, -0.8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 94 | p.BrickColor = BrickColor.new("Bright green") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Name = "PointerBase" |
| 103 | p.Size = Vector3.new(1.5, 1.5, 1) |
| 104 | p.CFrame = CFrame.new(0, 27.5, -0.76) |
| 105 | p.BrickColor = BrickColor.new("Bright green") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Stud" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Name = "DieWhiteL" |
| 114 | p.Size = Vector3.new(3, 3, 3) |
| 115 | p.CFrame = CFrame.new(-6, 5.58, -4) * CFrame.Angles(math.rad(0), math.rad(15), math.rad(0)) |
| 116 | p.BrickColor = BrickColor.new("Institutional white") |
| 117 | p.Material = Enum.Material.Glacier |
| 118 | p.MaterialVariant = "2022 Stud" |
| 119 | p.Anchored = true |
| 120 | p.Parent = model |
| 121 | end |
| 122 | do |
| 123 | local p = Instance.new("Part") |
| 124 | p.Name = "DieWhiteL_Dot" |
| 125 | p.Size = Vector3.new(0.75, 0.75, 0.1) |
| 126 | p.CFrame = CFrame.new(-6, 5.5, -5.55) * CFrame.Angles(math.rad(0), math.rad(15), math.rad(0)) |
| 127 | p.BrickColor = BrickColor.new("Bright green") |
| 128 | p.Material = Enum.Material.Glacier |
| 129 | p.MaterialVariant = "2022 Stud" |
| 130 | p.Anchored = true |
| 131 | p.Parent = model |
| 132 | end |
| 133 | do |
| 134 | local p = Instance.new("Part") |
| 135 | p.Name = "DieWhiteR" |
| 136 | p.Size = Vector3.new(3, 3, 3) |
| 137 | p.CFrame = CFrame.new(6, 5.58, -4) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(0)) |
| 138 | p.BrickColor = BrickColor.new("Institutional white") |
| 139 | p.Material = Enum.Material.Glacier |
| 140 | p.MaterialVariant = "2022 Stud" |
| 141 | p.Anchored = true |
| 142 | p.Parent = model |
| 143 | end |
| 144 | do |
| 145 | local p = Instance.new("Part") |
| 146 | p.Name = "DieWhiteR_Dot" |
| 147 | p.Size = Vector3.new(0.75, 0.75, 0.1) |
| 148 | p.CFrame = CFrame.new(6, 5.5, -5.55) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(0)) |
| 149 | p.BrickColor = BrickColor.new("Bright green") |
| 150 | p.Material = Enum.Material.Glacier |
| 151 | p.MaterialVariant = "2022 Stud" |
| 152 | p.Anchored = true |
| 153 | p.Parent = model |
| 154 | end |
| 155 | do |
| 156 | local p = Instance.new("Part") |
| 157 | p.Name = "DieYellowL" |
| 158 | p.Size = Vector3.new(3.5, 3.5, 3.5) |
| 159 | p.CFrame = CFrame.new(-11, 5.5, -2) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)) |
| 160 | p.BrickColor = BrickColor.new("Bright yellow") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Big Stud" |
| 163 | p.Anchored = true |
| 164 | p.Parent = model |
| 165 | end |
| 166 | do |
| 167 | local p = Instance.new("Part") |
| 168 | p.Name = "DieYellowL_Dot" |
| 169 | p.Size = Vector3.new(0.875, 0.875, 0.1) |
| 170 | p.CFrame = CFrame.new(-11, 5.5, -3.8) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)) |
| 171 | p.BrickColor = BrickColor.new("Bright green") |
| 172 | p.Material = Enum.Material.Glacier |
| 173 | p.MaterialVariant = "2022 Stud" |
| 174 | p.Anchored = true |
| 175 | p.Parent = model |
| 176 | end |
| 177 | do |
| 178 | local p = Instance.new("Part") |
| 179 | p.Name = "DieYellowR" |
| 180 | p.Size = Vector3.new(3.5, 3.5, 3.5) |
| 181 | p.CFrame = CFrame.new(11, 5.5, -2) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)) |
| 182 | p.BrickColor = BrickColor.new("Bright yellow") |
| 183 | p.Material = Enum.Material.Glacier |
| 184 | p.MaterialVariant = "2022 Big Stud" |
| 185 | p.Anchored = true |
| 186 | p.Parent = model |
| 187 | end |
| 188 | do |
| 189 | local p = Instance.new("Part") |
| 190 | p.Name = "DieYellowR_Dot" |
| 191 | p.Size = Vector3.new(0.875, 0.875, 0.1) |
| 192 | p.CFrame = CFrame.new(11, 5.5, -3.8) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)) |
| 193 | p.BrickColor = BrickColor.new("Bright green") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Stud" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Name = "DieTopL" |
| 202 | p.Size = Vector3.new(2.5, 2.5, 2.5) |
| 203 | p.CFrame = CFrame.new(-6, 26, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)) |
| 204 | p.BrickColor = BrickColor.new("Institutional white") |
| 205 | p.Material = Enum.Material.Glacier |
| 206 | p.MaterialVariant = "2022 Stud" |
| 207 | p.Anchored = true |
| 208 | p.Parent = model |
| 209 | end |
| 210 | do |
| 211 | local p = Instance.new("Part") |
| 212 | p.Name = "DieTopL_Dot" |
| 213 | p.Size = Vector3.new(0.625, 0.625, 0.1) |
| 214 | p.CFrame = CFrame.new(-6, 26, -1.3) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)) |
| 215 | p.BrickColor = BrickColor.new("Bright green") |
| 216 | p.Material = Enum.Material.Glacier |
| 217 | p.MaterialVariant = "2022 Stud" |
| 218 | p.Anchored = true |
| 219 | p.Parent = model |
| 220 | end |
| 221 | do |
| 222 | local p = Instance.new("Part") |
| 223 | p.Name = "DieTopR" |
| 224 | p.Size = Vector3.new(2.5, 2.5, 2.5) |
| 225 | p.CFrame = CFrame.new(6, 26, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)) |
| 226 | p.BrickColor = BrickColor.new("Institutional white") |
| 227 | p.Material = Enum.Material.Glacier |
| 228 | p.MaterialVariant = "2022 Stud" |
| 229 | p.Anchored = true |
| 230 | p.Parent = model |
| 231 | end |
| 232 | do |
| 233 | local p = Instance.new("Part") |
| 234 | p.Name = "DieTopR_Dot" |
| 235 | p.Size = Vector3.new(0.625, 0.625, 0.1) |
| 236 | p.CFrame = CFrame.new(6, 26, -1.3) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)) |
| 237 | p.BrickColor = BrickColor.new("Bright green") |
| 238 | p.Material = Enum.Material.Glacier |
| 239 | p.MaterialVariant = "2022 Stud" |
| 240 | p.Anchored = true |
| 241 | p.Parent = model |
| 242 | end |
| 243 | do |
| 244 | local rightV = Vector3.new(1,0,0).Unit |
| 245 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 246 | local normalV = upV:Cross(rightV) |
| 247 | local pos = Vector3.new(0, 15, -1.14) |
| 248 | local cyl = Instance.new("Part") |
| 249 | cyl.Shape = Enum.PartType.Cylinder |
| 250 | cyl.Size = Vector3.new(0.2, 20, 20) |
| 251 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 252 | cyl.BrickColor = BrickColor.new("Bright green") |
| 253 | cyl.Material = Enum.Material.Glacier |
| 254 | cyl.MaterialVariant = "2022 Stud" |
| 255 | cyl.Anchored = true; cyl.Parent = workspace |
| 256 | local cuts = {} |
| 257 | local angBoxes = {} |
| 258 | do |
| 259 | local edgeDir = 0.866025*rightV + 0.5*upV |
| 260 | local edgePerp = -0.5*rightV + 0.866025*upV |
| 261 | local cut = Instance.new("Part") |
| 262 | cut.Size = Vector3.new(40, 0.4, 40) |
| 263 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 264 | cut.BrickColor = BrickColor.new("Bright green") |
| 265 | cut.Material = Enum.Material.Glacier |
| 266 | cut.MaterialVariant = "2022 Stud" |
| 267 | cut.Anchored = true; cut.Parent = workspace |
| 268 | table.insert(angBoxes, cut) |
| 269 | end |
| 270 | do |
| 271 | local edgeDir = 0*rightV + 1*upV |
| 272 | local edgePerp = -1*rightV + 0*upV |
| 273 | local cut = Instance.new("Part") |
| 274 | cut.Size = Vector3.new(40, 0.4, 40) |
| 275 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 276 | cut.BrickColor = BrickColor.new("Bright green") |
| 277 | cut.Material = Enum.Material.Glacier |
| 278 | cut.MaterialVariant = "2022 Stud" |
| 279 | cut.Anchored = true; cut.Parent = workspace |
| 280 | table.insert(angBoxes, cut) |
| 281 | end |
| 282 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 283 | if #cuts > 0 then |
| 284 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 285 | for _, c in ipairs(cuts) do c:Destroy() end |
| 286 | if ok and result then |
| 287 | cyl:Destroy() |
| 288 | result.Name = "Slice1"; result.Anchored = true; result.Parent = model |
| 289 | else |
| 290 | cyl.Name = "Slice1"; cyl.Parent = model |
| 291 | end |
| 292 | else |
| 293 | cyl.Name = "Slice1"; cyl.Parent = model |
| 294 | end |
| 295 | end |
| 296 | do |
| 297 | local rightV = Vector3.new(1,0,0).Unit |
| 298 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 299 | local normalV = upV:Cross(rightV) |
| 300 | local pos = Vector3.new(0, 15, -1.14) |
| 301 | local cyl = Instance.new("Part") |
| 302 | cyl.Shape = Enum.PartType.Cylinder |
| 303 | cyl.Size = Vector3.new(0.2, 20, 20) |
| 304 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 305 | cyl.BrickColor = BrickColor.new("Bright green") |
| 306 | cyl.Material = Enum.Material.Glacier |
| 307 | cyl.MaterialVariant = "2022 Stud" |
| 308 | cyl.Anchored = true; cyl.Parent = workspace |
| 309 | local cuts = {} |
| 310 | local angBoxes = {} |
| 311 | do |
| 312 | local edgeDir = -0.866025*rightV + 0.5*upV |
| 313 | local edgePerp = -0.5*rightV + -0.866025*upV |
| 314 | local cut = Instance.new("Part") |
| 315 | cut.Size = Vector3.new(40, 0.4, 40) |
| 316 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 317 | cut.BrickColor = BrickColor.new("Bright green") |
| 318 | cut.Material = Enum.Material.Glacier |
| 319 | cut.MaterialVariant = "2022 Stud" |
| 320 | cut.Anchored = true; cut.Parent = workspace |
| 321 | table.insert(angBoxes, cut) |
| 322 | end |
| 323 | do |
| 324 | local edgeDir = -0.866025*rightV + -0.5*upV |
| 325 | local edgePerp = 0.5*rightV + -0.866025*upV |
| 326 | local cut = Instance.new("Part") |
| 327 | cut.Size = Vector3.new(40, 0.4, 40) |
| 328 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 329 | cut.BrickColor = BrickColor.new("Bright green") |
| 330 | cut.Material = Enum.Material.Glacier |
| 331 | cut.MaterialVariant = "2022 Stud" |
| 332 | cut.Anchored = true; cut.Parent = workspace |
| 333 | table.insert(angBoxes, cut) |
| 334 | end |
| 335 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 336 | if #cuts > 0 then |
| 337 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 338 | for _, c in ipairs(cuts) do c:Destroy() end |
| 339 | if ok and result then |
| 340 | cyl:Destroy() |
| 341 | result.Name = "Slice2"; result.Anchored = true; result.Parent = model |
| 342 | else |
| 343 | cyl.Name = "Slice2"; cyl.Parent = model |
| 344 | end |
| 345 | else |
| 346 | cyl.Name = "Slice2"; cyl.Parent = model |
| 347 | end |
| 348 | end |
| 349 | do |
| 350 | local rightV = Vector3.new(1,0,0).Unit |
| 351 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 352 | local normalV = upV:Cross(rightV) |
| 353 | local pos = Vector3.new(0, 15, -1.14) |
| 354 | local cyl = Instance.new("Part") |
| 355 | cyl.Shape = Enum.PartType.Cylinder |
| 356 | cyl.Size = Vector3.new(0.2, 20, 20) |
| 357 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 358 | cyl.BrickColor = BrickColor.new("Bright green") |
| 359 | cyl.Material = Enum.Material.Glacier |
| 360 | cyl.MaterialVariant = "2022 Stud" |
| 361 | cyl.Anchored = true; cyl.Parent = workspace |
| 362 | local cuts = {} |
| 363 | local angBoxes = {} |
| 364 | do |
| 365 | local edgeDir = 0*rightV + -1*upV |
| 366 | local edgePerp = 1*rightV + 0*upV |
| 367 | local cut = Instance.new("Part") |
| 368 | cut.Size = Vector3.new(40, 0.4, 40) |
| 369 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 370 | cut.BrickColor = BrickColor.new("Bright green") |
| 371 | cut.Material = Enum.Material.Glacier |
| 372 | cut.MaterialVariant = "2022 Stud" |
| 373 | cut.Anchored = true; cut.Parent = workspace |
| 374 | table.insert(angBoxes, cut) |
| 375 | end |
| 376 | do |
| 377 | local edgeDir = 0.866025*rightV + -0.5*upV |
| 378 | local edgePerp = 0.5*rightV + 0.866025*upV |
| 379 | local cut = Instance.new("Part") |
| 380 | cut.Size = Vector3.new(40, 0.4, 40) |
| 381 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 382 | cut.BrickColor = BrickColor.new("Bright green") |
| 383 | cut.Material = Enum.Material.Glacier |
| 384 | cut.MaterialVariant = "2022 Stud" |
| 385 | cut.Anchored = true; cut.Parent = workspace |
| 386 | table.insert(angBoxes, cut) |
| 387 | end |
| 388 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 389 | if #cuts > 0 then |
| 390 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 391 | for _, c in ipairs(cuts) do c:Destroy() end |
| 392 | if ok and result then |
| 393 | cyl:Destroy() |
| 394 | result.Name = "Slice3"; result.Anchored = true; result.Parent = model |
| 395 | else |
| 396 | cyl.Name = "Slice3"; cyl.Parent = model |
| 397 | end |
| 398 | else |
| 399 | cyl.Name = "Slice3"; cyl.Parent = model |
| 400 | end |
| 401 | end |
| 402 | model.PrimaryPart = model:FindFirstChild("WheelRim") |
| 403 | print("PrizeWheel built: " .. #model:GetChildren() .. " parts") |
Loading comments...