Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a badge giver GUI?

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)

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.