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

How do I award a Badge when I click on a brick???

It's pretty self explanatory. How do you award a specific badge using the mouse click tool on a certain brick?

1 answer

This assumes the script is within a part with a ClickDetector inside said part.

local BadgeService = game:GetService("BadgeService")
local BadgeId = 00

script.Parent.ClickDetector.MouseClick:Connect(function(plr)
	BadgeService:AwardBadge(plr.UserId,BadgeId)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.