My GUI code for a donation button doesn't work!

I am trying to make it so when the user clicks the 50 robux donation button it pops up with prompt so they can buy it.


image

I have tried reading sources but nothing is working.

Can someone please help me! (:smile:

MouseButton1Down() does not return a player argument. Please try:

script.Parent.Activated:Connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer,1200534911) 
1 Like