Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
How would I make it so that when a GUI is clicked, another GUI opens, and when it is clicked again, the GUI disappears? Thanks in advance,
Cheeso |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b1 |
|
|
Let's assume that this is perhaps something such as a TextButton and that the script is inside the GUI.
-------------------
GUIClicked = false
script.Parent.MouseButton1Click:connect(function()
if GUIClicked == false then
--GUI Code Here
GUIClicked = true
elseif GUIClicked == true then
script.Parent.Parent = nil
end
end) |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
I have a GUI button at the top of my screen and a text button inside of it. So I insert that script and it should work? |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
And erm….Just out of curiosity, the GUI that is being opened? The scrolling feature is fine and I inserted a TextLabel but anything I write goes in the middle. How do I make the text start in the top right corner and go left to right until it reaches the bottom? |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
Scroll to the bottom of the TextLabel's properties and you'll see XAlignment and YAlignment or something. Make them Left and Up, rather than Centre. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Thanks Smiley :) |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Uh oh. Hang on. Now when I write stuff in, it goes off of the scrolling frame? And there is no button slider? Do I have to make a new Label for every line? |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
I think you need to make sure TextWrapped is true. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Oh erm. Probably….lol thanks again |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
How do I put a text button at the bottom of a scrolling frame? I can position it right but it looks like it is behind the frame? |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Ohhhh. Do I need to put a TextLabel and then text button inside of it? |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Nope nvm does not work. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b1 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b2 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b3 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b4 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b5 |
|
|
Yes, insert the script and inform me of the result. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
SO I have a scrolling frame with info in it. That works fine. I need a close button. So when I put a text button with a script on the scrolling frame, it appears behind it
|
|
|
Change the ZIndex property. |
|