How to make an object appear if a player has a badge?

I wanna make a trophie that appears if a player owns a badge but idk how to make it can someone help?

Use the badgeservice to check if a player has a specific badge and spawn the object client-side (so that only the player who owns the badge can view the trophy, if you’re running a multiplayer game).

1 Like
local BadgeService = game:GetService("BadgeService")

if BadgeService:UserHasBadgeAsync(UserId,BadgeId) then
	-- code to spawn the trophy
end

replace UserId and BadgeId with the userid of the player and the asset id of the badge.

I would recommend using a localscript to spawn the trophy like the reply above states.

1 Like