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?
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.