Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to award players badge through dialog?

Asked by 7 years ago

I am trying to award players in dialog when they click an option and when I get to the option in a server, nothing happens.

local dialog = script.Parent
local badgeService = game:GetService("BadgeService")
local badgeID = 583076410
dialog.Finalone.DialogChoiceSelected:connect(function(player, choice)
    if choice == dialog.Finalone then
        badgeService:AwardBadge(player.userId, badgeID)
    end
end)

Can someone figure out what is wrong? Thanks

0
Error Shawnyg 4330 — 7y
0
Are you sure you actually have the badge in the game? Also, even if it works, it won't be applied to you since you have already claimed the badge immediately after you made it, use a different account to test it. Endermanium 25 — 7y
0
Or you could delete the badge out of your inventory and do it again, no alts required. WesleyTheSkunk 12 — 7y

Answer this question