Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the AssetId of a gamepass?

Asked by
LazokkYT 117
3 years ago

Hi. So I was wondering how to get the library version of gamepass id's? Roblox made a new system in April 2018 where gamepasses had their own id's and I'm wondering how to find out a gamepass's old assetid? (roblox.com/library/gamepassid)

For example, this gamepass id is 2: https://www.roblox.com/game-pass/2/test what if I wanted that to be an assetid instead of a gamepass id? How would I achieve this? Thanks!

3 answers

Log in to vote
0
Answered by 3 years ago

Here:

Local Gamepass = game:GetService('MarketplaceService'):UserOwnsGamePassAsync(player.userId, “ID GOES HERE”)

Ask me if you have any other questions!

0
I'm asking if I could get the assetID of the gamepass not checking if a player owns it LazokkYT 117 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

You can't. Roblox removed the old "AssetID's". The GamepassID is basically the AssetID now.

0
Well, I went on a gamepass that had it's old AssetID and it just redirected me to the gamepassID. It would be annoying if I'll have to change a bunch of stuff in my old game, though. LazokkYT 117 — 3y
Log in to vote
0
Answered by
qes 0
3 years ago

To get the game pass ID from an existing asset ID, go to www.roblox.com/library/{assetId}/view . You will be redirected to www.roblox.com/game-pass/{gamePassId}/view . You can then copy the game pass ID from the URL.

0
I'm trying to do the opposite. I want to get the AssetId of a gamepass. LazokkYT 117 — 3y

Answer this question