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

Badge Isn't Being Given Properly?

Asked by
Wyqkrn 9
5 years ago

I have a badge script that activates when you complete a wave in my tower defense game. This is the script:

function KilledBigBoss(ID)
    BadgetId = ID
game.Players.PlayerAdded:connect(function(p)
wait(0.1)
b = game:GetService("BadgeService") 
b:AwardBadge(p.userId,BadgetId)
end)
end

However, it seems to only work when you play singleplayer. Anyone have any pointers?

0
format plz RunKittenzRComin 170 — 5y

Answer this question