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

GUI, Prompt Purchase?

Asked by 10 years ago

Output: 22:08:49.990 - MarketplaceService:PromptPurchase() second argument is not a valid productId (supplied productId was less than 0

local player = game.Players.LocalPlayer
local productId = script.Parent.Parent.Parent.Value.Value
script.Parent.MouseButton1Click:connect(function()
    game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)
0
Try changing the object name from Value to something like "ProdID" (without the quotes.) Spongocardo 1991 — 10y
0
still nothing Timster111 25 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

You should only have one .Value in line 2 unless there's an object named Value

0
There is an object named value Timster111 25 — 10y
Ad

Answer this question