The title should be really self-explanatory, but basically, whenever I purchase a developer product once, it charges the account and makes the code that processes the receipt run only once (as it should,) however, once you try to purchase it again a few seconds later, the code that processes the receipt executes twice (which gave me double of the item that was only supposed to come out as one.) I tried debugging it by making it so it checks to see if the PurchaseIds are the same but turns out that 2 complete different PurchaseIds are created.
(This is the PurchaseId when you buy it only once:)
(This is the output once you try to buy it a second time:)
I then tried seeing if buying it a third time would make it so it executes the code twice but turns out that it executed the code 3 times (as seen below)
I don’t have a clue how to fix this and every method I’ve looked at isn’t helping. Another issue I have is knowing if this is a Studio error or an error that can also happen in the regular Roblox engine. Can someone help me out?