brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
|
| 06 May 2014 07:58 AM |
i need a script that will open my frame located in a txt bottun witch are in a frame
how do i do so when u click the rules the frame and all its txt guis inside will be visible and when u click again it be invisible |
|
|
| Report Abuse |
|
|
yia
|
  |
| Joined: 06 Nov 2008 |
| Total Posts: 13563 |
|
| |
|
gamma2244
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 12481 |
|
|
| 06 May 2014 07:58 AM |
I think we need a translators for the scripters to understand you.
~Azur Renthius Kallun- The Champion of Mareth. | I don't fail, I seig heil! |
|
|
| Report Abuse |
|
|
brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
|
| 06 May 2014 08:01 AM |
i need a script that do so when u click a gui u still understand? where guis inside a frame and the frame will be visible u still understand? and then when u click again the guis inside the frame and the frame will be invisible u still understand? |
|
|
| Report Abuse |
|
|
brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
| |
|
Vesperus
|
  |
| Joined: 29 Oct 2013 |
| Total Posts: 5146 |
|
|
| 06 May 2014 08:06 AM |
| gui opens when u touch the block>> |
|
|
| Report Abuse |
|
|
brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
| |
|
Vesperus
|
  |
| Joined: 29 Oct 2013 |
| Total Posts: 5146 |
|
|
| 06 May 2014 08:40 AM |
| so u touch a block and a gui opens? |
|
|
| Report Abuse |
|
|
brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
|
| 06 May 2014 08:42 AM |
no when i click gui1 then all the guis INSIDE gui1 will be visible and when i click on gui1 again the guis inside gui1 will be invisible |
|
|
| Report Abuse |
|
|
Vesperus
|
  |
| Joined: 29 Oct 2013 |
| Total Posts: 5146 |
|
|
| 06 May 2014 08:45 AM |
so for example gui in corner gui says 'Open team changer 'choice of the 2 teams |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 08:58 AM |
local FrameToToggle = script.Parent.Parent.GUI1 -- change it pls local Button = script.Parent.Button -- change it pls
Button.MouseButton1Click:connect(function() FrameToToggle.Visible = not FrameToToggle.Visible end) |
|
|
| Report Abuse |
|
|
Syncretic
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 11662 |
|
|
| 06 May 2014 09:00 AM |
| where is the script located in the GUI |
|
|
| Report Abuse |
|
|
Crakkitty
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 17408 |
|
|
| 06 May 2014 09:02 AM |
FrameStuff = game.Players.LocalPlayer.PlayerGui.ScreenGui.Button.FrameStuff
visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.Button.MouseButton1Click():connect(function()
if visible == true then visible = false FrameStuff.Visible = false
else
visible = true FrameStuff.Visible = true
end end)
just make sure the hierarchy follows the script and that should work |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 09:02 AM |
| Anywhere as long as you change the two things relative to where the script is |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 09:03 AM |
@Crak, #1 - not the best way to go about that #2 - wouldn't work
>"game.Players.LocalPlayer.PlayerGui.ScreenGui.Button.MouseButton1Click():connect(function()" >"Button.MouseButton1Click():connect" >"MouseButton1Click()"
gg no re |
|
|
| Report Abuse |
|
|
brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
|
| 06 May 2014 09:03 AM |
how do i do so its more guis than 1 like i click GUI1 more guis gets visible i click GUI1 again all the guis inside GUI1 gets invisible |
|
|
| Report Abuse |
|
|
Crakkitty
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 17408 |
|
|
| 06 May 2014 09:04 AM |
@poly it's 5:30 and i just woke up qq
~nyaa~ |
|
|
| Report Abuse |
|
|
Crakkitty
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 17408 |
|
|
| 06 May 2014 09:05 AM |
@brun
so long as you make the frame invisible, all of its descendants will be hidden
~nyaa~ |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 09:05 AM |
@brun, The parent frame's visibility is "inherited" to all the children. Just put the children frames you want to turn invisible in a single parent frame, then change "FrameToToggle" to wherever the parent frame is. Change "Button" to wherever the button you wanna click is. |
|
|
| Report Abuse |
|
|
brunbamse
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 1107 |
|
|
| 06 May 2014 09:15 AM |
am i doing something wrong i have named the first thing frame since its in frame second rules then i placed all the guis inside the rules with the script made all the guis inside rules invisible
|
|
|
| Report Abuse |
|
|
|
| 06 May 2014 09:17 AM |
| ok can you make the gui a model so i can do it for you. i dont think youre understanding. |
|
|
| Report Abuse |
|
|