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

devloper product saying that it is not for sale. Is it something with my script?

Asked by
Plieax 66
5 years ago
local this = script.Parent
local amount = this.Amount
local plr = game.Players.LocalPlayer
local marketserv = game:GetService("MarketplaceService")


this.Activated:connect(function()
    print(plr.Name)
    game:GetService("MarketplaceService"):PromptPurchase(plr, 269009354)
end)

0
Do you own the developer product User#5423 17 — 5y
0
I have an answer to your problem. Check out my answer below. OldBo5 30 — 5y

1 answer

Log in to vote
1
Answered by
OldBo5 30
5 years ago
local this = script.Parent
local amount = this.Amount
local plr = game.Players.LocalPlayer
local marketserv = game:GetService("MarketplaceService")


this.Activated:connect(function()
    print(plr.Name)
    game:GetService("MarketplaceService"):PromptProductPurchase(plr, 269009354)
end)


I'm upgrading to Windows 10 right now, when it's done I will see if it works. It should work anyway. PromptPurchase is for anything thats not a Dev Product or Gamepass.

1
I tested it for you, this solution works User#1007 6 — 5y
0
thanks Plieax 66 — 5y
Ad

Answer this question