Hello Everyone,
This is my first post ever so don’t bully me to much if this is not in the correct “Format”.
First time developer, I just launched my game couple of weeks ago and gotten 45K visits, and with that a bunch of bugs. My biggest one being, failed transactions. Not everyone but a couple of people are having troubles with purchasing Developer Products. Just some people, once they buy and product (A clue for my puzzle game) it just doesn’t give them a clue. But again It works in studio, it works for most players, its just for a couple a player it just doesn’t go through.
This is the script that handles the cluuuues.
MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if player then
if receiptInfo.ProductId == nil then
elseif receiptInfo.ProductId == 2699770619 then
player.Clues.Value += 3
print("Giving 3 Clue")
local productInfo = MarketplaceService:GetProductInfo(receiptInfo.ProductId, Enum.InfoType.Product)
TopDonorsDS:IncrementAsync(player.UserId, productInfo.PriceInRobux)
elseif receiptInfo.ProductId == 2699770910 then
player.Clues.Value += 6
print("Giving 6 Clue")
local productInfo = MarketplaceService:GetProductInfo(receiptInfo.ProductId, Enum.InfoType.Product)
TopDonorsDS:IncrementAsync(player.UserId, productInfo.PriceInRobux)
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
If anyone has any ideas or links to a good youtube video that deals with this issue that would be great!
Sorry again if this post is like “wrong” . Love to get feedback on both the script and I guess format of the forum lol.