Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a text button open another one?

Asked by 6 years ago
Edited 6 years ago

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.

0
You don't need filtering enabled for this at all. Toggling a GUI to open another does not require remotes at all. User#24403 69 — 6y
0
This is very vague, when do you want them to open and can you show us what you've coded so far? TheRighteousBuilder 70 — 6y
0
FilteringEnabled is mostly used for Server-Client communication. Operating with something using one client, and no client-client interaction will not require any remote/bindable functions/events. Instead, just have a script that connects to the TextButton's MouseButton1Click signal. Fifkee 2017 — 6y

1 answer

Log in to vote
0
Answered by
Potaaden -18
6 years ago

Use this

01local MainFrame = script.Parent
02local CloseDonations = MainFrame:WaitForChild("CloseDonations")
03local OpenDonations = MainFrame.Parent:WaitForChild("OpenDonations")
04 
05OpenDonations.MouseButton1Click:connect(function()
06    MainFrame.Visible = true
07end)
08 
09CloseDonations.MouseButton1Click:connect(function()
10    OpenDonations.Visible = true
11    MainFrame.Visible = false
12end)
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

Ad

Answer this question