Scripts for delivering badges

Can someone send me all badge delivery scripts, why mine doesn’t want to work please help me there .-.

1 Like

We’re not here to write code for you. Posts to #help-and-feedback:scripting-support expect at least a small amount of effort put forth by the original poster in solving a problem.

Did you actually try tackling this issue yourself, or are you simply looking for answers? If you’ve tried anything, post it here and we can analyze what you tried to guide you in the right direction. If you’re looking for answers, here’s your answer.

2 Likes

If that doesn’t work what do I do?

2 Likes

Just copy paste the code and rework it into a module, it’ll make your life so much easier. Just follow the link that @Negativize posted.

1 Like

Can you please send the code you tried using that didn’t work? That way, we can examine it and determine what is wrong with it, and fix it up for you!

Picsart_23-06-13_13-19-33-355
Here is help me correcting the errors of this.

2 Likes

Bruh moment: badge:AwardBadge()player.UserId, 2125244700

It goes in the parentheses silly! Also, add a not to the if

1 Like

(The below is just providing the code in accordance with the post above this one. If this code works correctly, mark the post above as the solution, NOT this one)

game.Players.PlayerAdded:Connect(function(player)
    local badge = game:GetService("BadgeService")
    if not badge:UserHasBadgeAsync(player.UserId, 2125244700) then
        badge:AwardBadge(player.UserId, 2125244700)
    end
end)

it should also be :UserHasBadgeAsync, NOT :UserHasBadge

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.