How do i get Gamepass price

Yeah the title says it literally
how do i get a price.

MarketplaceService:GetProductInfo(AssetId).PriceInRobux

Example:

local marketplaceService = game:GetService("MarketplaceService")
local productInfo = marketplaceService:GetProductInfo(Insert gamepass ID, Enum.InfoType.GamePass)

print(productInfo.PriceInRobux) --// your price of gamepass

OH SH i completly forgot about Enum.InfoType lol.
it printed out nil without it and i had no idea why

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.