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
This is in a LocalScript right?
Yes
Instead of script.Parent.Parent.Parent, do game.Players.LocalPlayer, and put a product id without the "".
Thank you very much. <3
No problem!