Hi, I have been having issues trying to give the player, points after they purchase a developer product.
This function works some of the times and dosen’t most of the time.
> MP.ProcessReceipt = function(info)
> for i, player in pairs(game.Players:GetChildren()) do
> if player.UserId == info.PlayerId then
>
> for value, id in pairs(_G.ProductIDs)do
> if info.ProductId == id then
> pcall(function()
> pointsDS:Increment(tonumber(value))
> if player["PlayerGui"]["MainGui"]["Frames"]:FindFirstChild("Purchased") == nil then
> local purchasedFrame = game.ServerStorage["Frames"]["Purchased"]:Clone()
> purchasedFrame.Parent = player["PlayerGui"]["MainGui"]["Frames"]
> end
> end)
> end
> end
> end
> end
> return Enum.ProductPurchaseDecision.PurchaseGranted
> end
There was another post about this issue which didn’t help me with my issue
The other post:
I can’t seem to find the issue, can someone please help me, thanks