Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does MarketPlaceService have some many loop holes?

Asked by 10 years ago
local assetId = script.Parent.MarketID.Value
script.Parent.MouseButton1Down:connect(function()
Game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, assetId, false, 2)
end)

I have this code inside of the gui to make it be able to buy something but it does not work for some reason.

0
Do I need to keep the game.Player.LocalPlayer part? Someguy1002 0 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

You need to use a LocalScript for this.

0
It still does not work. Someguy1002 0 — 10y
Ad

Answer this question