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:

1function KilledBigBoss(ID)
2    BadgetId = ID
3game.Players.PlayerAdded:connect(function(p)
4wait(0.1)
5b = game:GetService("BadgeService")
6b:AwardBadge(p.userId,BadgetId)
7end)
8end

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

0
format plz RunKittenzRComin 170 — 5y

Answer this question