generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: MouseButton1Click Not Working...

Previous Thread :: Next Thread 
StarWars is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Z007
Joined: 14 Sep 2010
Total Posts: 11729
11 Jan 2013 07:34 AM
:/ the same thing is happening to me...
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
11 Jan 2013 07:48 AM
i love ur name OP! :D
Report Abuse
Z007 is not online. Z007
Joined: 14 Sep 2010
Total Posts: 11729
11 Jan 2013 11:57 AM
Lolthanks
Yours is pretty cool also!
Report Abuse
megaguy44 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
11 Jan 2013 01:39 PM
And this script is not inside of a coroutine function?
Report Abuse
StarWars is not online. StarWars
Joined: 04 Jan 2007
Total Posts: 500
11 Jan 2013 01:46 PM
Yea it's in one... :/
Report Abuse
Z007 is not online. Z007
Joined: 14 Sep 2010
Total Posts: 11729
11 Jan 2013 01:54 PM
Mega, I was talking to you
durphead
Report Abuse
Monkey727 is not online. 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 is not online. 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
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
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
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
11 Jan 2013 02:21 PM
I believe I just solved this mystery. Cookie to Robo? :D
Report Abuse
StarWars is not online. 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 is not online. 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
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image