How to detect if a user’s gamepass is for sale?

So, I’m making a “pls donate” type game. I have a script that uses Roblox, and when I detect if a player has a gamepass they made for sale, and whenever the gamepass is purchased on a “pls donate stand” it comes with an error saying “pass.Product.IsForSale” isn’t working. Here’s my script: closed

1 Like

You can use MarketplaceService to get the info of the gamepass using the GetProductInfo Method

It returns an Array which contains whether the Asset is on sale or not, it’s a boolean.

game:GetService("MarketplaceService"):GetProductInfo(ID, Enum.InfoType.GamePass).IsForSale

This block will return false if the gamepass is not for sale, and true if it is.

Thank you! <3 30000000000000000

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