So I want to know how to make a gui give you a badge, like when you click the button it gives you a badge (ex. gui pops up saying "Click here to get free badge)
COMMUNITY QUESTION
How to make a badge giver GUI?
1 answer
--LOCALSCRIPT LOCALSCRIPT LOCALSCRIPT--
local id = 0 --Badge ID here
script.Parent.MouseButton1Down:connect(function()
print("Awarding BadgeID: " .. id .. " to UserID: " .. game.Players.LocalPlayer.userId .. "via. GUI")
local b = game:GetService("BadgeService")
b:AwardBadge(game.Players.LocalPlayer.userId, id)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
