So i have this GUI that is needed for my game (Im making a pokemon one) and i need my textbutton to make it so my other textbutton shows up. Once that one shows up i need to make it open another text button. All my other things are sorted. I need this as Roblox Studio's has changed alot now and it forces you to use filtering enabled.
Use this
01 | local MainFrame = script.Parent |
02 | local CloseDonations = MainFrame:WaitForChild( "CloseDonations" ) |
03 | local OpenDonations = MainFrame.Parent:WaitForChild( "OpenDonations" ) |
04 |
05 | OpenDonations.MouseButton 1 Click:connect( function () |
06 | MainFrame.Visible = true |
07 | end ) |
08 |
09 | CloseDonations.MouseButton 1 Click:connect( function () |
10 | OpenDonations.Visible = true |
11 | MainFrame.Visible = false |
12 | end ) |
13 | --script for open close gui |
14 | --you can change it up to fit your problem |
You need to make a main frame and a special close button here is the scripted for that