I have watched the FE scripts and the currency does not add the currency that the players requested though robux.
01 | local Player = nil --Provide the player |
02 | local MS = game:GetService( "MarketplaceService" ) |
03 |
04 | local Id = 0 --DevProduct id |
05 | MS:PromptProductPurchase(Player,Id) |
06 | MS.ProcessReceipt = function (receiptInfo) |
07 | if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId = = Player.userId then |
08 | Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + 500 --Example |
09 | end |
10 | end |