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

How do I make my Developer Product buyable on a gui?

I was wondering for my game... Thanks!

1 answer

✓ Accepted answer

this also adds player points to game.

local productId = PASTIDHEAR
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
    Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

5 comments

0

Do I put this in a Button?

0

Wait it doesnt work

0

in a GUI button.

0

it works in my game. :l

0

local productId = THEIDHEAR

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