Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 11 Aug 2012 10:34 AM |
print("hi") script.Parent.MouseButton1Down:connect(function() print("bye") end)
It prints hi When I click on the ImageButton, it doesn't do anything. Yes, the ImageButton is active |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 10:36 AM |
| Just wondering, is this in a LocalScript? |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 11 Aug 2012 10:36 AM |
It is, but I thought normal scripts within the PlayerGui ran on the client side anyways? But whatever, yes it is in a LocalScript. |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 11 Aug 2012 10:36 AM |
function clicked print("hi") end
script.Parent.MouseButton1Down:connect(clicked) |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
| |
|
|
| 11 Aug 2012 10:39 AM |
| LocalScripts seem to be very buggy right now. I tried using localscripts and they just don't work at all for me. Could be an update. |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 11 Aug 2012 10:43 AM |
| Oddly enough my other localscript that controls when the mouse hovers over the buttons works perfectly fine. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 10:44 AM |
| Well, I used the mouse in my scripts. Maybe the LocalScripts fail when it has something to do with the mouse (because I changed my gun to use the Humanoid's TargetPoint instead and it worked fine) |
|
|
| Report Abuse |
|
|