Detect User's Accessories

How would I check if the player is wearing a Accessories made by ROBLOX and not by UGC Creators.

1 Like

You should be able to do this using the GetProductInfo API.

local marketplaceService = game:GetService("MarketplaceService")

local function isAssetMadeByROBLOX(ID)
local productInfo;

pcall(function() productInfo = marketplaceService:GetProductInfo(ID, Enum.InfoType.Asset) end)

if productInfo then
return productInfo.Creator.Name == "Roblox"
end
end
1 Like

yea I already figured it out thanks tho