Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GUI, Prompt Purchase?

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)

2 comments

0

Try changing the object name from Value to something like "ProdID" (without the quotes.)

0

still nothing

1 answer

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

1 comment

0

There is an object named value

This discussion is preserved as it was. New answers, comments, and votes are closed.