Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I see if a player owns a shirt or a badge?

Asked by 3 years ago

How do I see if a player owns a shirt or a badge?

2 answers

Log in to vote
0
Answered by
Subsz 366 Moderation Voter
3 years ago
Edited 3 years ago

Roblox has a BadgeService which you can use to check if the player has a badge

game:GetService('BadgeService'):UserHasBadgeAsync(playerId,badgeId)

For the shirt, you can use MarketplaceService.

0
When I use marketplace it only shows Gamepass... DavidMind67 -8 — 3y
0
Try MarketplaceService:PlayerOwnsAsset(plrId,assetId) Subsz 366 — 3y
0
dont think that answering small questions will make u look cool SilentsReplacement 468 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

No, go on thier inventory

Answer this question