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

3 comments

0

Error

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.

0

Or you could delete the badge out of your inventory and do it again, no alts required.