GSmGpE6CwX2y9JjB25B8
We use cookies on this site to enhance your user experience

Badges – Special Game Awards

Badges – Special Game Awards

Sep 16 2019, 11:08 PM PST

Badges allow you to create special awards for players who do something exceptional within your game. A badge might be awarded when a player:

  • Collects 100 gold stars in the game.
  • Jumps across a challenging series of platforms over a poison swamp.
  • Finds all 7 spirit keys to to unlock the kingdoms of Earth, Air, Lava, Ocean, Light, Shadow, and Dreams.

Creating a Badge

It costs 100 to create a badge. To begin, open the Game Explorer window from the View tab in Roblox Studio.

In the window, right-click the Badges item and select Create Badge. This will open a new view with input fields for creating a badge.

Designing an Icon

Badges require an image of exactly 150×150 pixels. These steps will help you create an icon.

  1. Save the following template for a circular badge icon to your computer by right-clicking the image and selecting Save Image As….
  1. In an image editor or drawing application, fill in the blank circular area with some artwork.
  1. Save the badge image with a new file name (if you plan to create more than one badge for your game, you shouldn’t save over the original template file).
Design Tips

When designing an icon, note these design tips:

  • The black corners will be invisible in the final image, so be careful not to draw over them!
  • Do not resize the template — uploaded badge images must be exactly 150×150 pixels to display properly on the Roblox website.

Uploading the Badge

The final step in the creation process is uploading the badge.

  1. Back in Roblox Studio, click the small button next to Find your image.
  1. Find the badge image on your computer and confirm that you’d like to upload it.
  2. Type in a name and description for the badge. Remember to tell players how to earn the badge so they have a specific goal to reach for!
  3. When you’re ready, click Preview. On the next screen, review the details for the badge and purchase when you’re ready. Once the purchase is complete, the badge will appear in the Badges tree of the Game Explorer window.

Scripting for Badges

To take full advantage of badges, you’ll need to use scripting. Here are some common examples:

Awarding a Badge

In the following script, the awardBadge() function can be called whenever it fits your game design, for instance when a player touches the final platform of a challenging jumping sequence. Using BadgeService functions, it checks if the player already owns the badge and, if not, awards it using BadgeService/AwardBadge|BadgeService:AwardBadge().

Checking Earned Badges

The following script waits for any player to enter the game and checks if they own a specific badge. This is useful for creating a articles/Collision Filtering Team Doors|restricted area or articles/Teleporting Between Places|teleporter that only works if a player owns a special badge.