Ok. So I have a couple of of buttons (GUI) with this script.
local MS = game:GetService("MarketplaceService")
local B = script.Parent
local P = game.Players.LocalPlayer
local productId = 20406723
B.MouseButton1Click:connect(function()
MS:PromptProductPurchase(P, productId)
end)
I have also defined a receipt call back.
Meanwhile. The buttons still do not bring up a window to conform its purchase.
FYI I am using devoloper products as my product to add player points to the game. |