Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to add currency when a players brought a purchase?(Purchase script would be great aswell)

Asked by 5 years ago
Edited 5 years ago

I have watched the FE scripts and the currency does not add the currency that the players requested though robux.

1 answer

Log in to vote
2
Answered by
karlo_tr10 1233 Moderation Voter
5 years ago

local Player = nil --Provide the player local MS = game:GetService("MarketplaceService") local Id = 0 --DevProduct id MS:PromptProductPurchase(Player,Id) MS.ProcessReceipt = function(receiptInfo) if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == Player.userId then Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + 500 --Example end end
0
Make sure it's Normal script karlo_tr10 1233 — 5y
Ad

Answer this question