local assetId = script.Parent.MarketID.Value script.Parent.MouseButton1Down:connect(function() Game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, assetId, false, 2) end)
I tried the above code inside of a local script and it still does not work. Also the following code is pasted inside of a gui. Please help.
Marked as Duplicate by evaera
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?