I made a couple dev products in my game, and they dont seem to be working. i was thinking maybe it could be because of fe, but now i dont think it is.
Local Script:
local MarketplaceService = game:GetService("MarketplaceService") local buyButton = script.Parent local productId = 104671260 player = game.Players.LocalPlayer buyButton.MouseButton1Click:connect(function() MarketplaceService:PromptProductPurchase(player, productId) end)
Server Script:
local MarketplaceService = game:GetService("MarketplaceService") local productId = 104751949 MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userid == receiptInfo.PlayerId then if receiptInfo.ProductId == productId then player.leaderstats.Money.Value = player.leaderstats.Money.Value+1000 return Enum.ProductPurchaseDecision.PurchaseGranted end end end end
The developer product pops up and all and allows you to press buy and spend robux, but the Money value stays the same. Do i have to add that part to a totally new server script and fire it through the current server script? I am confused :P