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!
COMMUNITY QUESTION
The script for issuing a badge when clicked!?
1 answer
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!!
This discussion is preserved as it was. New answers, comments, and votes are closed.
