I was wondering for my game... Thanks!
this also adds player points to game.
local productId = PASTIDHEAR local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId) end)