How do you load data via Badges?

Hello! I am a new developer. And I am curious on how you can load data using badges?
Here is an example?
“If you own a badge called “Level 1” then the locked wall of level 2 opens”

2 Likes

Maybe you can check if the player owns the asset

You can use BadgeService:UserHasBadgeAsync() to check if player has the badge in question:

local BadgeService = game:GetService("BadgeService")
local Player = --Reference the player in question here.
local BadgeID = --Put the badge ID here.
if BadgeService:UserHasBadgeAsync(Player.UserId,BadgeID) == true then
    --Do stuff.
else
--Do stuff or remove the else statement entirely if you want nothing to happen.
end