How to Check if a Player Successfully Bought a GamePass

I was wondering how to check if a player successfully bought a prompted game pass.

I’m aware of MarketplaceService.PromptGamePassPurchaseFinished, but that fires if they press “Cancel” or “Buy now”. I just want my event to fire if they successfully bought the item. (i.e not press “Cancel”)

Any way to do this?

6 Likes

Check this on the developer hub. It explains how to check if they purchased and how to give the player benefits of the gamepass without having to leave and rejoin.

1 Like

Yep, the third argument of the listener.

MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, pass_id, was_purchased)

end)

The third argument is a boolean that determines if the pass was actually purchased

50 Likes