Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Gamepass ID not pulling up the gamepass?

I created two new gamepasses today. I clicked on one and it took me to the gamepass page and I copied the ID for it. I wanted to make it for sale so I could test it. I clicked on configure via the gear button where it shows all your gampsses and when I did it took me to a random persons model that also had the same ID.

So far it only lets me click on the gamepass and then I can click the 3 dots in the right corner to configure its price. I added the gamepass ID to my game and every time I click to purchase it in game it pulls up the model and doesn't allow the purchase as this item is currently not for sale.

Is there currently a fix for this?

How do I get the ID the links correctly to the gamepass?

Thank you for your help.

1 answer

✓ Accepted answer

Each gamepass has a gamepass id and an asset id.

In order to visit a page of a gamepass by its gamepass id, you need to use a url like this one: https://www.roblox.com/game-pass/id/name

To configure it, you need to use the url with game-pass in it and its gamepass id aswell: https://www.roblox.com/game-pass/configure?id=4374816

Although since each gamepass has an asset id too, if you obtain it (which you can do with this api of mine), you can use the base url for assets, which is https://www.roblox.com/catalog/id to view your gamepass.

The assetid of a gamepass is also usable with MarketplaceService:PlayerOwnsAsset()

1 comment

0

Thank you for the help, I had no issues before today. After some checking I found out new changes are live for how you call game passes in game. I just had to make a few changes to the API.

This discussion is preserved as it was. New answers, comments, and votes are closed.