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
Closed as Non-Descriptive by User#19524
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?