PcoWSkbVqDnWTu_dm2ix

Awarding Badges to Players

Awarding Badges to Players

Mar 30 2021, 5:24 AM PST

Problem

You want to award a badge.

Solution

Use the AwardBadge method.

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

Discussion

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