Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

1 answer

Log in to vote
0
Answered by
KingDomas 153
5 years ago
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 :)

0
doesn't seem to work :( thanks for trying iiDamOreoii 0 — 5y
Ad

Answer this question