Can someone send me all badge delivery scripts, why mine doesn’t want to work please help me there .-.
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.
If that doesn’t work what do I do?
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.
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!
Here is help me correcting the errors of this.
Bruh moment: badge:AwardBadge()player.UserId, 2125244700
It goes in the parentheses silly! Also, add a not
to the if
(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.