I have developer products that were working 100% perfectly yesterday and just suddenly stopped working today for no reason.
The local script
script.Parent.MouseButton1Click:connect(function()
game:GetService('MarketplaceService'):PromptProductPurchase(
game.Players.LocalPlayer,
33580693,
false,
Enum.CurrencyType.Default
)
end)
The server script
local DataStore = game:GetService("DataStoreService"):GetDataStore("ProductPurchases")
game:GetService("MarketplaceService").ProcessReceipt = function(ReceiptInfo)
local Purchasing_Player = game.Players:GetPlayerByUserId(ReceiptInfo.PlayerId)
if ReceiptInfo.ProductId == 33580693 then
if Purchasing_Player and Purchasing_Player:FindFirstChild('leaderstats') and Purchasing_Player.leaderstats:FindFirstChild('Coins') then
print("Gamepass purchased")
Purchasing_Player.leaderstats.Coins.Value = Purchasing_Player.leaderstats.Coins.Value + 100
end
end
DataStore:IncrementAsync(ReceiptInfo.PlayerId .. '_' .. ReceiptInfo.ProductId, 1)
return Enum.ProductPurchaseDecision.PurchaseGranted
end
This was working perfectly and it just suddenly stopped even though I didn't touch the script. Someone bought this developer pass and didn't get the coins that they should have (there is basically no reason for it to stop working) and I dont know what to do about this.
