Here is a link to my original Question: https://scriptinghelpers.org/questions/58045/trying-to-set-up-a-devproduct-cant-work-out-why-it-wont-work-any-pointers
This is the updated script:
This is the Button Menu Script
local button = script.Parent local mpService = game:GetService('MarketplaceService') button.MouseButton1Down:connect(function() mpService:PromptProductPurchase(game.Players.LocalPlayer, 260372991) end)
This is the DevProduct Script that used to increase the value (worked for a bit, now stopped)
local mpService = game:GetService('MarketplaceService') function mpService.ProcessReceipt(receiptInfo) local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId) if receiptInfo.ProductId == 260372991 then player.leaderstats.Scrap.Value = player.leaderstats.Scrap.Value + 40 return Enum.ProductPurchaseDecision.PurchaseGranted end end
Not sure why it wont work, ive tried using the original script before I changed the Values and Leaderstats Value. And gone on the Original Game, no longer works there either.