This object cannot be created with the
Instance|Instance.new constructor function.
This class is a Service! It is a top-level singleton which can be retrieved using the
The GamePassService is a service that supports legacy game passes using Asset IDs.
MarketplaceService should be used for all new game passes.
For more information about game passes, please see this article.
Legacy Game Passes
Historically, game passes on Roblox had an Asset ID associated with them. Although game passes created with an Asset ID still have an Asset ID, they now also have a Game Pass ID. All new game passes created today only have a Game Pass ID.
You can retrieve the Game Pass ID of any pass through its URL, for example the Game Pass ID of the below pass is 1:
Whether you are using an Asset ID or a Game Pass ID determines which API members you can use.
|Works with Asset ID (Legacy)||Works with Game Pass ID (Current)|
|Prompt a purchase||MarketplaceService:
|Prompted purchase finished||MarketplaceService.
API members that work with Asset IDs will not work with new game passes as they do not have them.