So I got my developer product but whenever I click the gui button it automatically gives me 5000 money which is what I want it to do but I don't have to buy the product for it to give me the money which is where the issue is
heres the code :
local productId = 19993414
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
player.leaderstats.Money.Value = player.leaderstats.Money.Value + 5000
end)
any idea on how I should do this?
