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)