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

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

Asked by 9 years ago

I was wondering for my game... Thanks!

1 answer

Log in to vote
1
Answered by 9 years ago

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)
0
Do I put this in a Button? antlerer 33 — 9y
0
Wait it doesnt work antlerer 33 — 9y
0
in a GUI button. Xandenge 0 — 9y
0
it works in my game. :l Xandenge 0 — 9y
0
local productId = THEIDHEAR Xandenge 0 — 9y
Ad

Answer this question