I have made a dev product button which works and all but when I want to add specific values which belong to each of the button it wont let me because I can’t send over the value that I want to add to the server so help
local MarketplaceService = game:GetService("MarketplaceService")
local function processReceipt(receiptInfo,Player,Amount)
-- Find the player who made the purchase in the server
local player = game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
-- The player probably left the game
-- If they come back, the callback will be called again
return Enum.ProductPurchaseDecision.NotProcessedYet
end
-- Output what product they bought
player.Coins.Value = player.Coins.Value + Amount
-- IMPORTANT: Tell Roblox that the game successfully handled the purchase
return Enum.ProductPurchaseDecision.PurchaseGranted
end
-- Set the callback (this can only be done once by one script on the server!)
MarketplaceService.ProcessReceipt = processReceipt
Amount is the value im trying to add