How do you get thumbnails of bundles?

So I’m making an outfit shop, and making a system to easily make outfits. One part of this is getting the thumbnail of items, using this:
"rbxthumb://type=Asset&id=" .. ProductId .. "&w=150&h=150"
It works fine for accessories and faces, but won’t work for bundles. Also when I use MarketPlaceService:PromptBundlePurchase(), I get the error PromptBundlePurchase is not yet enabled.

Does anyone know how to fix this?

1 Like

PromptBundlePurchase() has been inaccessible since its creation (still in beta/testing).

Test the following asset ID’s thumbnail.

139610216

image

Wow, this works, but where did you get that id? I pasted it into a decal page and it led to the package, even though the package id is 192.

How do you find that id, and how could you do it via a script?

Never mind, got it working.

For the code, the tag has to be
"rbxthumb://type=BundleThumbnail&id=" .. ProductId .. "&w=150&h=150"

and not
"rbxthumb://type=Asset&id=" .. ProductId .. "&w=150&h=150"

Regardless, thanks for the support!

8 Likes
game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 139610216)

Ok, but how would you find that id?

You can get the ID by manually checking it on the following API:
https://catalog.roblox.com/docs#!/Bundle/get_v1_bundles_bundleId_details

Click on the link, then on "/v1/bundles/{bundleId}/details, scroll down till you see a text field saying “bundleId”. Type in the ID of your bundle, then press “Try it out!” and scroll down to the last json table (before the Owner: Roblox) and copy the ID.

2 Likes