script.Parent.ClickDetector.MouseClick:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, 972737495)
end)
fix pls says dev product is no sale when clearly is
script.Parent.ClickDetector.MouseClick:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, 972737495)
end)
fix pls says dev product is no sale when clearly is
You would want to use PromptProductPurchase then, not PromptPurchase. By the way, you don't have to use a click detector. You can replace ClickDetector.MouseClick with MouseButton1Click, and it will work just fine. Here's what I suggest your script should look like:
script.Parent.MouseButton1Click:connect(function(player)
game:GetService("MarketplaceService"):PromptProductPurchase(player, 972737495)
end)
Hope this helps!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You would want to use PromptProductPurchase then, not PromptPurchase.