I have been using this in game to prompt the purchase but what I would like to do is fire a GUI to open if the sale completed.
local shirtId = 0000000000
script.Parent.ClickDetector.MouseClick:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, shirtId)
end)

2 comments
Thank you very much.
No problem!