Plz fix it.
script.Parent.ClickDetector.MouseClick:connect(function(player) game:GetService("MarketplaceService"):PromptProductPurchase(player, 19579792) end) game:GetService("MarketplaceService").PromptProductPurchaseFinished:connect(function(userId, productId, isPurchased) if isPurchased == true then end end)
Explain what you've tried so far. Don't come into the picture just asking for someone to do all of the work for you.
Do not only post code, or only post an explanation. Both are required to make a good question.