PcoWSkbVqDnWTu_dm2ix

Awarding Badges to Players

Awarding Badges to Players

Jun 14 2019, 4:48 PM PST

You want to award a badge.

Use the AwardBadge method.

game:GetService('BadgeService'):AwardBadge(game.Players.Player.userId, 1234)

We first proceed to get the BadgeService. The AwardBadge method is then used, it accepts the ID of the user you want to award the badge to, then the ID of the badge itself. To get the in game ID of a player, you use the userId property of their Player.

Tags:
  • badge