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

How to get the AssetId of a gamepass?

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

Here:

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

Ask me if you have any other questions!

1 comment

0

I'm asking if I could get the assetID of the gamepass not checking if a player owns it

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

1 comment

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.

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