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

Why script won't give player badge if he bought game pass?

Asked by 8 years ago

Hey, I have problem with script. Player should receive badge, when he got game pass, but somewhere is problem or script is sucks. Btw i made this script.

local BadgeID = 426182476
local Extra = 393762688

game.Players.PlayerAdded:connect(function(player)
    if game:GetService("GamePassService"):PlayerHasPass(player, Extra) then
        game:GetService("BadgeService"):AwardBadge(player.userId, BadgeID)
    end
end)

Answer this question