|
| 15 Dec 2013 05:05 PM |
| How can I make a script that sets a frames visible to false when the player clicks on a text button? |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Dec 2013 05:10 PM |
textButton.MouseButton1Click:connect(function() frame.Visible = false end)
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Dec 2013 05:19 PM |
It should. Show me how you changed it.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 15 Dec 2013 05:19 PM |
you mean script.Parent.Frame.Transparency=1 end
|
|
|
| Report Abuse |
|
|
Grove537
|
  |
| Joined: 05 Feb 2010 |
| Total Posts: 3478 |
|
|
| 15 Dec 2013 05:20 PM |
| you need to set frame as a variable to your Frame and textButton as a variable to your Text Button |
|
|
| Report Abuse |
|
|
BloxDaily
|
  |
| Joined: 08 Feb 2013 |
| Total Posts: 5319 |
|
|
| 15 Dec 2013 05:22 PM |
local Frame = script.Parent.Parent -- make this to were your frame is
function click() Frame.Visible = false end
script.Parent.MouseButton1Down:connect(click) |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2013 05:23 PM |
Is it in a LocalScript (which shouldn't matter, but you never know...) or is the script Disabled?
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
BloxDaily
|
  |
| Joined: 08 Feb 2013 |
| Total Posts: 5319 |
|
|
| 15 Dec 2013 05:26 PM |
use mine only if the button is in the frame.
but if it is not do something like
local Frame = script.Parent.Parent.Frame -- Parent #1: button Parent #2: screengui |
|
|
| Report Abuse |
|
|