StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
|
| 11 Jan 2013 05:46 AM |
So, I have my script located in the ScreenGui and I have a Frame called "Choice" and a button called "Eng"
Can you please tell me why I'm not getting anything prints or anything when I press this button? ._.
Thanks
Code: script.Parent.Choice.Eng.MouseButton1Click:connect(function() print("Button1 click.") end) |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 11 Jan 2013 06:06 AM |
| Your parents have to be wrong, btw this only works with gui's just pointing that out |
|
|
| Report Abuse |
|
|
StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
|
| 11 Jan 2013 06:14 AM |
| I just checked it, and still not working :/ |
|
|
| Report Abuse |
|
|
StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
|
| 11 Jan 2013 07:08 AM |
| I don't understand ._. please help. The parent is correct. I don't know what else is wrong, and there's no errors popping up ._. |
|
|
| Report Abuse |
|
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 11 Jan 2013 07:34 AM |
| :/ the same thing is happening to me... |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 11 Jan 2013 11:57 AM |
Lolthanks Yours is pretty cool also! |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 11 Jan 2013 12:23 PM |
@OP's name, Mother of God...
print('Hello World!') |
|
|
| Report Abuse |
|
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 11 Jan 2013 12:32 PM |
Loliknow that's why I did it mwahaha you'll never underestimate the power of me [and yes, I know what he meant, don't worry] boo-yah! |
|
|
| Report Abuse |
|
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 11 Jan 2013 12:34 PM |
oh wait was that directed at me? oh well, if you read my post you'll know. |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 11 Jan 2013 12:38 PM |
*Is directed at OP *is not op *asks if directed at him yes *sarcasm
print('Hello World!') |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 11 Jan 2013 01:12 PM |
| You sure the button has a size? :3 That happened to me million of times >.> |
|
|
| Report Abuse |
|
|
StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
|
| 11 Jan 2013 01:38 PM |
| Yup the button is size. And still not working ._. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2013 01:39 PM |
| And this script is not inside of a coroutine function? |
|
|
| Report Abuse |
|
|
StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
| |
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 11 Jan 2013 01:54 PM |
Mega, I was talking to you durphead |
|
|
| Report Abuse |
|
|
Monkey727
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 11 Jan 2013 01:57 PM |
Sometimes if another gui object is infront of the button it might not work?
I can't think of anything else. |
|
|
| Report Abuse |
|
|
StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
|
| 11 Jan 2013 02:04 PM |
| Moved it out of the way, still not doing anything :/ |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2013 02:14 PM |
| Bro, if its in a Coroutine then it won't output the error in the code, take it out of the coroutine function and test it |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2013 02:21 PM |
| I believe I just solved this mystery. Cookie to Robo? :D |
|
|
| Report Abuse |
|
|
StarWars
|
  |
| Joined: 04 Jan 2007 |
| Total Posts: 500 |
|
|
| 11 Jan 2013 02:25 PM |
| Solved it :D just found out I didn't name one of the buttons correctly and the rest of the script freaked out ._. |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 11 Jan 2013 02:35 PM |
@Z007's most recent post. I know .__________________.
print('Hello World!') |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2013 03:05 PM |
I know that you solved it. but I'm curious; why didn't you just put the script IN the TextButton? Then you could just index it by script.Parent, saving you all this trouble. :P
http://wiki.roblox.com/index.php/User:ElectricBlaze |
|
|
| Report Abuse |
|
|