Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

my Developer product script won't work. Help?

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?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.