game.Players.PlayerAdded:connect(function(plr)
	local frame = script.Parent
	local robux = script.Parent.Parent.Parent.Parent.Robux
	local mps = game:GetService("MarketplaceService")
	local button1 = frame.b1000 local id1 = 36477699
	local button2 = frame.b5000 local id2 = 36477717
	local button3 = frame.b15000 local id3 = 36477751
	local button4 = frame.b85000 local id4 = 36477768

	button1.MouseButton1Down:connect(function()
		mps:PromptPurchase(plr, id1)
		
		mps.PromptPurchaseFinished:connect(function(plr, id1, purchased)
			if purchased == true then
				robux.Value = robux.Value + 1000
			end
		end)
	end)
	
	button2.MouseButton1Down:connect(function()
		mps:PromptPurchase(plr, id2)
		
		mps.PromptPurchaseFinished:connect(function(plr, id2, purchased)
			if purchased == true then
				robux.Value = robux.Value + 5000
			end
		end)
	end)
	
	button3.MouseButton1Down:connect(function()
		mps:PromptPurchase(plr, id3)
		
		mps.PromptPurchaseFinished:connect(function(plr, id3, purchased)
			if purchased == true then
				robux.Value = robux.Value + 15000
			end
		end)
	end)
	
	button4.MouseButton1Down:connect(function()
		mps:PromptPurchase(plr, id4)
		
		mps.PromptPurchaseFinished:connect(function(plr, id4, purchased)
			if purchased == true then
				robux.Value = robux.Value + 85000
			end
		end)
	end)
end)

There's the code I am using, keep in mind the ID's are DEVELOPER PRODUCTS, not gamepasses, it prompts the player to buy the Developer Products, but they aren't even mine? I think one of them prompted the user to buy a shirt...???

Help please? Thanks! :D

Here are the products: http://i.imgur.com/wg8Ibs7.png

3 comments

0

Your id's aren't even developer products. What are you trying to make?

0

I posted the link to the products in the Desc

0

And I solved it, as you are incorrect, they ARE dev products, you just didn't search for them correctly (not sure if you even can find them), it is supposed to be :PromptProductPurchase() not :PromptPurchase()