Can you help me with selling Dev Products? I made my products I just need a script that sells them. I am using a surface GUI and am trying to sell player points.
here's a script that doesn't work:
local buyButton = script.Parent local productId = 20139068 local Plr = script.Parent.Parent
buyButton.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptProductPurchase(Plr, productId) end)
local MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.PromptProductPurchaseFinished:connect(function(userId, productId, isPurchased) if isPurchased then
end end)
Marked as Duplicate by User#2
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?