local productId = 19874388
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)
It wont work when trying to insert 2 playerpoints into the game after bought a dev product.
