How do you make an open-close GUI witch works with robux donation system?
Asked by
6 years ago Edited 6 years ago
Hi! I've been trying for a long time to merge my open close GUI with my Roblox donation GUI. Can some one help me? here are my scripts.
script for my open close gui
01 | local MainFrame = script.Parent |
02 | local CloseDonations = MainFrame:WaitForChild( "CloseDonations" ) |
03 | local OpenDonations = MainFrame.Parent:WaitForChild( "OpenDonations" ) |
05 | OpenDonations.MouseButton 1 Click:connect( function () |
06 | MainFrame.Visible = true |
09 | CloseDonations.MouseButton 1 Click:connect( function () |
10 | OpenDonations.Visible = true |
11 | MainFrame.Visible = false |
script for my robux donation buttons
3 | script.Parent.Donate 10. MouseButton 1 Click:Connect( function () |
4 | game.MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent, id) |