How To Make A Spinner Button

Hello Developers

Trying To Make It Where You Click A Proximity Prompt And It Comes Up With A Spinner Which Randomly Picks Something And Awards A Badge For Each Item Picked
Like When You Click It There Is A Spinner And What it lands on grants a badge.
Can Someone Help With A YouTube Tutorial Or Some Sort Of Help In The Replies / Website Help ?

Just use math.random() as choosing the award and other stuffs.

1 Like

If you’re only asking how to make a spinner button by proximity prompt, then I gotchu.

local ProximityPromptService = game:GetService("ProximityPromptService")


local function onPromptTriggered(promptObject, player)
    local spinnerGUI = script.spinnerGUI:Clone() -- or anywhere u want
    spinnerGUI.Parent = player.PlayerGui

end


ProximityPromptService.PromptTriggered:Connect(onPromptTriggered)

If it includes the gui spinner to function, maybe get an imagelabel for each and get those to spin by rotation and then find where the arrow hits to. I never tried this before but it’s worth a try to do that.

1 Like

Try this for a spinner, Case Opening System | Roblox Tutorial - YouTube, use this for a good randomization awarding badge kind of thing. How To Make An EGG HATCHING SYSTEM - Roblox Studio Scripting Tutorial - YouTube

1 Like