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

How do you make a badge giver that gives the badge on touch of a part?

Tried a lot of different scripts, none seem to work...

1 answer

local BadgeService = game:GetService("BadgeService")
    
    local giveBadgeFunction awardBadge(player, badgeId)
    	if BadgeService:IsLegal(badgeId) and not BadgeService:IsDisabled(badgeId) then
    		BadgeService:AwardBadge(player.UserId, badgeId)
    	end
    end

game.Workspace.givePart.Touched:Connect(function()
giveBadgeFunction()
end)

I don't know whether this will work since I'm bad at lua but you could try it out :)

1 comment

0

doesn't seem to work :( thanks for trying

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