RaveRae
|
  |
| Joined: 25 Aug 2014 |
| Total Posts: 218 |
|
|
| 29 Sep 2014 08:48 PM |
game.StarterGui.DJGui.Close.Visible = false game.StarterGui.DJGui.ScrollingFrame.Visible = false
function onClicked(PlayerWhoClicked) game.StarterGui.DJGui.ScrollingFrame.Visible = true game.StarterGui.DJGui.Close.Visible = true end
script.Parent.ClickDetector.MouseButton1up:connect(function(Clicked) end)
I don't understand why the gui isn't showing up when I click on the button with the click detector. |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
|
| 29 Sep 2014 09:00 PM |
| it should be MouseButtone1Down |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
| |
|
|
| 29 Sep 2014 09:15 PM |
Well cause...
game.StarterGui.DJGui.Close.Visible = false game.StarterGui.DJGui.ScrollingFrame.Visible = false
function onClicked(PlayerWhoClicked) --This works but nothing is connected to it. --Also don't do it this way or it will only show up to everyone who repsawns game.StarterGui.DJGui.ScrollingFrame.Visible = true game.StarterGui.DJGui.Close.Visible = true
end
script.Parent.ClickDetector.MouseButton1up:connect(function(Clicked) --This is what is ran when you click it.. end)
Do this:
script.Parent.ClickDetector.MouseClick:connect(function(Player) Player.PlayerGui:WaitForChild'DJGui'--Waits for DJGui then once it's found it will open the guis Player.PlayerGui.DJGui.ScrollingFrame.Visible = true Player.PlayerGui.DJGui.Close.Visible = true end)
|
|
|
| Report Abuse |
|
|