Prevent Developer Purchase From Going Through

I would like to implement a revive system in my game. When a player dies during an active game, a pop-up GUI appears, giving them the option to revive by purchasing a developer product through MarketplaceService:PromptProductPurchase(Player, Revive.Value). Once the round ends, the GUI disappears, and the player can no longer be prompted to make a purchase, as intended.

However, if a player opens the purchase prompt but doesn’t complete the transaction immediately, they might finalize the purchase at a time when they should no longer be able to revive (e.g., after the round has ended).

Is there a way to prevent the purchase from being completed in these circumstances?

Thanks in advance!

1 Like

If you use a timer system for your rounds, you can make a time that after that certain time you can’t purchase a revive.

If you use a if all players are dead end round then you should probably make a point in the game where you cant revive. Otherwise you could make it could make it so the round continues after the purchase is made.

This may cause some hate towards your game if they buy it last minute then are scammed out of their money

Make a revive system as if it was a currency, so if they use a revive when they cant they get +1 revive they can use anytime

They should also be able to buy revives in the lobby

1 Like

Yeah, I thought about doing this. It might be the only solution. Thanks.