PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

PromptProductPurchase

Used to prompt a user to purchase a product with the given product id.

Parameters

Name Type Default Description
true
Default

Returns

Return Type Summary

Code Samples


MarketplaceService:PromptProductPurchase

The below example would prompt all new players to buy a developer product with an ID of 123456.

local productId = 123456
game.Players.PlayerAdded:Connect(function(player)
	Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)