|
| 04 Aug 2016 11:37 PM |
local Box = script.Parent.Box local Button = script.Parent.NewsButton local Open = false
Button.MouseButton1Down:connect(function(open) if Open == false then Open = true Button.Text = "Close" Box.Visible = true Open = true elseif Open == true then Button.Text = "News" if Open == true then Box.Visible = false Open = false end end end)
|
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
| |
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
Eslerp
|
  |
| Joined: 07 May 2016 |
| Total Posts: 205 |
|
|
| 04 Aug 2016 11:48 PM |
local Box = script.Parent.Box local Button = script.Parent.NewsButton local Open = false
Button.MouseButton1Down:connect(function() if Open == false then Open = true Button.Text = "Close" Box.Visible = true else if Open == true then Button.Text = "News" Box.Visible = false Open = false end end end) |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 04 Aug 2016 11:50 PM |
I think he meant being here was what hurt his eyes
local Box = script.Parent.Box local Button = script.Parent.NewsButton local open = false
Button.MouseButton1Down:connect(function() open = not open Button.Text = (open==true and "Close") or News" Box.Visible = open end) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2016 11:53 PM |
Neither of those worked.
If you play this (optional) https://www.roblox.com/games/181049510/Halloween-2015-Spooksville
It doesn't open the GUI button.
|
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 04 Aug 2016 11:56 PM |
Sorry I missed a quote
Button.MouseButton1Down:connect(function() open = not open Button.Text = (open==true and "Close") or "News" Box.Visible = open end) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2016 11:59 PM |
For some odd reason, it's working on ROBLOX studio play mode but not in game play mode?
|
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 05 Aug 2016 12:00 AM |
| It has to be a localscript if it's inside a gui. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 12:19 AM |
It is a LocalScript in the GUI, from what I've heard, ROBLOX removed touching buttons to open something up?
|
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 05 Aug 2016 12:22 AM |
| MouseButton1Down fires when the player clicks on the gui. Roblox certainly did not remove it. |
|
|
| Report Abuse |
|
|
| |
|