Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How to PromptProductPurchase with ClickDetector?

Asked by 2 months ago
Edited by incapaxx 2 months ago

I Want to prompt a product purchase when someone click's on part.

```lua local button = script.Parent

local devid = 492714573

button.ClickDetector.MouseClick:Connect(function()

game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer,devid)

end) ``` what is wrong with this code, it doesn't seem to be working

0
Can you please post the whole code into a PasteBin TiownBuilderV4 0 — 2mo
0
you can just use button.MouseButton1Click if it's a Gui. tree_tree00 4 — 2mo

Answer this question