How would you get information for a gear from the website?

I am trying to modify the gear command on HD Admin so it can only insert gears from the “Social”, “Transport”, and “Musical” categories.

How would I retrieve a gear’s attribute using a script?

1 Like

This can be done with MarketplaceService.
Here is an example:

local MarketplaceService = game:GetService("MarketplaceService")
local assetId = 833771102 -- Asset Id
local productInfo = MarketplaceService:GetProductInfo(assetId, Enum.InfoType.Asset)

print(productInfo.AssetType) -- Print 
Help
  • 2 = T-Shirt

  • 8 = Hat

  • 11 = Shirt

  • 12 = Pants

  • 17 = Head

  • 18 = Face

  • 19 = Gear

  • 25 = Arms

  • 26 = Legs

  • 27 = Torso

  • 28 = RightArm

  • 29 = LeftArm

  • 30 = LeftLeg

  • 31 = RightLeg

  • 41 = HairAccessory

  • 42 = FaceAccessory

  • 43 = NeckAccessory

  • 44 = ShoulderAccessory

  • 45 = FrontAccessory

  • 46 = BackAccessory

  • 47 = WaistAccessory

  • 48 = ClimbAnimation

  • 49 = DeathAnimation

  • 50 = FallAnimation

  • 51 = IdleAnimation

  • 52 = JumpAnimation

  • 53 = RunAnimation

  • 54 = SwimAnimation

  • 55 = WalkAnimation

  • 56 = PoseAnimation

  • 61 = EmoteAnimation

Make sure HTTP services and Enable Studio Access to API Services are enabled in game settings.

1 Like

This has already been posted, please read before you post to avoid duplicate answers.

This is a very niche request & this was the only other thread I could find on the topic.

1 Like