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
6 years ago
01local this = script.Parent
02local amount = this.Amount
03local plr = game.Players.LocalPlayer
04local marketserv = game:GetService("MarketplaceService")
05 
06 
07this.Activated:connect(function()
08    print(plr.Name)
09    game:GetService("MarketplaceService"):PromptPurchase(plr, 269009354)
10end)
0
Do you own the developer product User#5423 17 — 6y
0
I have an answer to your problem. Check out my answer below. OldBo5 30 — 6y

1 answer

Log in to vote
1
Answered by
OldBo5 30
6 years ago
01local this = script.Parent
02local amount = this.Amount
03local plr = game.Players.LocalPlayer
04local marketserv = game:GetService("MarketplaceService")
05 
06 
07this.Activated:connect(function()
08    print(plr.Name)
09    game:GetService("MarketplaceService"):PromptProductPurchase(plr, 269009354)
10end)

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 — 6y
0
thanks Plieax 66 — 6y
Ad

Answer this question