How To Create Random Spinner

I am attempting to make a random spinner wheel that decides on a random Minigame. The code is simple, tween the UI to spin to a random degree, right? Yes, however, I want to make the random spinner slow down before revealing the minigame. Please do NOT spoon feed, any ideas on how to guide me with my code is appreciated :grinning:

Just use Enum.EasingStyle.Quad or Enum.EasingStyle.Quart in the TweenInfo.

That’s what I already had and ended up doing, but thanks anyways!

Hey! Just curious, how did you make the UI for this? I was thinking of using a scrolling frame however im having issues with it and it doesn’t seem to work.

1 Like

I created a wheel divided into fourths on a graphic design program. Then, imported that into roblox as an image without a background color (to ensure it was only a circle showing). Then, in a script I utilized the math.random Statement to create a random number between 0 and 360. Then I tweened the rotation of the wheel to that rotation! To add even more effect I added 1440 to the random number so that the wheel would rotate 4 times before stopping on the section.

Hope this helps :grin:

1 Like