For My donation button

local id = 360542490 

script.Parent.Donate10.MouseButton1Click:Connect(function()
	game.MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent, id)
end)

--script for one of my donation buttons

For my open/close GUI

local MainFrame = script.Parent
local CloseDonations = MainFrame:WaitForChild("CloseDonations")
local OpenDonations = MainFrame.Parent:WaitForChild("OpenDonations")

OpenDonations.MouseButton1Click:connect(function()
	MainFrame.Visible = true
end)

CloseDonations.MouseButton1Click:connect(function()
	OpenDonations.Visible = true
	MainFrame.Visible = false
end)
--script for my open close gui

1 comment

0

could you go into more detail. Is the problem that the donation button script just isn't working?