PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GamePassService

Show deprecated

GamePassService

Show deprecated

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:

https://www.roblox.com/game-pass/1/myGamePass

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)
Verify Ownership GamePassService:
PlayerHasPass
MarketplaceService:
UserOwnsGamePassAsync
Prompt a purchase MarketplaceService:
PromptPurchase
MarketplaceService:
PromptGamePassPurchase
Prompted purchase finished MarketplaceService.
PromptPurchaseFinished
MarketplaceService.
PromptGamePassPurchaseFinished

API members that work with Asset IDs will not work with new game passes as they do not have them.

Properties

Functions

Events