Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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)

2 comments

0

Do you own the developer product

0

I have an answer to your problem. Check out my answer below.

1 answer

✓ Accepted answer
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.

2 comments

1

I tested it for you, this solution works

0

thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.