Tried a lot of different scripts, none seem to work...
COMMUNITY QUESTION
How do you make a badge giver that gives the badge on touch of a part?
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 :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
doesn't seem to work :( thanks for trying