|
| 02 Apr 2013 07:12 PM |
function onClicked(playerWhoClicked) game.StarterGui.GuiMain.close.Transparency = 1 game.StarterGui.GuiMain.close.TextTransparency = 1 game.StarterGui.GuiMain.reset.Transparency = 1 game.StarterGui.GuiMain.reset.TextTransparency = 1 game.StarterGui.GuiMain.afk.Transparency = 1 game.StarterGui.GuiMain.afk.TextTransparency = 1 game.StarterGui.GuiMain.endafk.Transparency = 1 game.StarterGui.GuiMain.endafk.TextTransparency = 1 end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Output is blank as well. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 07:14 PM |
| You mean BackgroundTransparency? Because Transparency isn't as property of gui objects |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 07:16 PM |
Fixed that problem. This code still doesn't work.
function onClick(playerWhoClicked) game.StarterGui.GuiMain.close.BackgroundTransparency = 1 game.StarterGui.GuiMain.close.TextTransparency = 1 game.StarterGui.GuiMain.reset.BackgroundTransparency = 1 game.StarterGui.GuiMain.reset.TextTransparency = 1 game.StarterGui.GuiMain.afk.BackgroundTransparency = 1 game.StarterGui.GuiMain.afk.TextTransparency = 1 game.StarterGui.GuiMain.endafk.BackgroundTransparency = 1 game.StarterGui.GuiMain.endafk.TextTransparency = 1 end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Hey. I'm a siggy. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 07:21 PM |
script.Parent.ClickDetector.MouseClick:connect(onClicked)
to
script.Parent.ClickDetector.MouseClick:connect(onClick) |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 07:23 PM |
Got an output this time. ClickDetector not a child of.
Should I add a click detector? In the close button. The others dont have them.
Hey. I'm a siggy. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 07:25 PM |
Fix:
script.Parent.MouseButton1Click:connect(onClick) |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 10:23 AM |
Okay, that works, Now I just need an open button.
I guess I just need to reverse the properties?
Hey. I'm a siggy. |
|
|
| Report Abuse |
|
|
ohno1112
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 833 |
|
| |
|