I tried scripting a simple little donation gui the script is here :

local id = "" -- Put your product id here.

script.Parent.TextButton.MouseButton1Click:connect(function()
	game.MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent, id)
end)

What i have is a frame with text buttons and its supposed to bring up the purchase thing when you click it but it doesn't work.

5 comments

0

This is in a LocalScript right?

0

Yes

0

Instead of script.Parent.Parent.Parent, do game.Players.LocalPlayer, and put a product id without the "".

0

Thank you very much. <3

0

No problem!