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)

1 comment
I did not find any problem i was searching and redoing it then he sayd that i typed loca wrong ;D