GBX.lua.BadgeService (Service)

From Goodblox Wiki
Revision as of 12:19, 20 September 2021 by Xyrafrost (talk | contribs) (created the page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Note: This is a Game Service, and therefore isn't like other Objects in the Class Explorer. You have to call it with :
game:GetService("<Service name>")


The BadgeService runs in a place to handle badges. When a player meets a certain requirement the AwardBadge function can be called to give that player a badge. You can also check to see if a player has won a previous badge, even if it is not one of your badges.


Tips and Tricks

The UserHasBadge method can be really useful. It can be used for saving data. You can use it to make a Gui Badge checker which will show if they have a badge or not. Really helpful with badge hunts.

Functions

In addition to the Global functions, the BadgeService also has these:

# indicates a locked function. These should NOT be tampered with.

Properties

The BadgeService only incorporates global properties.

Events

The BadgeService only incorporates global events.