Hi!
I am looking for a way to get the number of “CurrencySpent” from a gamepass purchase like you can with devproduct purchases, but I could not find a single thing. Is there a way to do this?
Thanks!
You can use GetProductInfo’s .PriceInRobux property to get the price of a gamepass.
2 Likes
Thanks for the reply!
Am I using it correctly if I say:
local PassInfo = MarketplaceService:GetProductInfo(12417203) print(PassInfo.PriceInRobux)
1 Like
I don’t think that would work as you haven’t specified which InfoType you’re going to use.
local PassInfo = MarketplaceService:GetProductInfo(12417203, Enum.InfoType.GamePass) should work though.
1 Like
It works perfectly thank you! ![]()
1 Like