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

The script for issuing a badge when clicked!?

Asked by 2 years ago

Need a script!!!!!! Is it possible for a script to give out a badge when you click on a button in the menu? Please help!

1 answer

Log in to vote
0
Answered by 2 years ago

This should work Put script in your UI button

local badgeservice = game:GetService("BadgeService")

local id = (2124809954) --put badge id here

script.Parent.MouseButton1Click:Connect(function(Click)



    local plr = game.Players:GetPlayerFromCharacter(Click.Parent)

    badgeservice:AwardBadge(plr.UserId,id)

end)

Hope this helps!!

Ad

Answer this question