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

How to sell Dev Products? [closed]

Asked by 10 years ago

This question already has an answer here:

How to use DeveloperProducts?

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)

0
Well, in my opinion, I wouldn't use a Surface gui because it's hard to get a path that leads to a player. Your path to the player would be used for regular Screen GUIs. I suggest using a ClickDetector and a brick because I've spent hours trying to figure out how to do it with Surface GUIs, but no luck. Shawnyg 4330 — 10y
0
So the script could work, just on a Screen GUI? Blueguy195 0 — 10y
0
Yes. Shawnyg 4330 — 10y
0
Also, can the owner purchase the items? Blueguy195 0 — 10y
View all comments (2 more)
0
Yes. All users, including the owner and ROBLOX Admins are eligible to purchase Developer products. Shawnyg 4330 — 10y
0
The script isnt working Blueguy195 0 — 10y

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?