I was recently trying to create a spin the wheel to earn something kind of game, and I ran into a big problem. I don’t know how to create a spinner! I’ve looked almost everywhere online, but I was unable to find a spinner that matched all of these attributes:
Was Free
Good Quality
Ui based, not Physical
How do I create a spinner?
(I may have found a solution, currently working on it)
Generate a random number between 1 and the number of items.
Tween the spinner’s rotation to the angle based on that position by doing
local function calculateDegree(itemAngle) --Item is the angle of the item this can be anything it just depends on the size of the UI on the wheel.
return math.min(1+speed*(360 / totalItems), 360)
end
Tween the rotation a couple times and after the first few 360 degrees tween it to the final random item.