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 4 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
4 years ago
Edited 4 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 — 4y
0
Try MarketplaceService:PlayerOwnsAsset(plrId,assetId) Subsz 366 — 4y
0
dont think that answering small questions will make u look cool SilentsReplacement 468 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

No, go on thier inventory

Answer this question