local MarketplaceService = game:GetService("MarketplaceService") local ds = game:GetService("DataStoreService"):GetDataStore("countdowncreditservice") local productID = 23394060 MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == productID then player.statistics.credits.Value = player.statistics.credits.Value + 50 local key = "plyr-"..player.userId local savedvalue = {player.statistics.credits.Value} ds:SetAsync(key, savedvalue) return Enum.ProductPurchaseDecision.PurchaseGranted end end end return Enum.ProductPurchaseDecision.PurchaseGranted end
The ID is correct, I'm getting no errors. This is supposed to process the receipt. I don't understand what the problem is.