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

PromptPurchase

Used to prompt a user to purchase an item with the given assetId.

For game passes, use MarketplaceService/PromptGamePassPurchase.

Parameters

Name Type Default Description
true
Default

Returns

Return Type Summary

Code Samples


MarketplaceService:PromptPurchase

The below example would prompt all new players to buy Beautiful Hair for Beautiful People.

game.Players.PlayerAdded:Connect(function(player)
	game:GetService("MarketplaceService"):PromptPurchase(player, 16630147)
end)