diddims4
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 884 |
|
|
| 22 Nov 2013 06:11 PM |
Does KeyDown work only in a local script.. Where does this script have to be?? |
|
|
| Report Abuse |
|
|
|
| 22 Nov 2013 06:12 PM |
Well it is an event of the mouse...So pretty much a localscript.
Localscripts will run as a descendant of the player or character. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 22 Nov 2013 06:19 PM |
| no it also works for normal script such as Gui menu's and stuff... |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 22 Nov 2013 06:21 PM |
No.
Mouse it a LocalScript exclusive object. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 22 Nov 2013 06:23 PM |
| I have one right now that is working -_- |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 22 Nov 2013 06:25 PM |
| Works perfectly like a charm :D |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 22 Nov 2013 06:31 PM |
You're not actually playing your game.
Unless the server has a global mouse (which would be utterly stupid on so many levels), your script will fail because the server can't hack into your computer mouse. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 22 Nov 2013 06:35 PM |
| by keydown I meant MouseButton1Down event not legit keydown itself... |
|
|
| Report Abuse |
|
|
|
| 22 Nov 2013 06:42 PM |
MouseButton1Down is an event of GUI objects. KeyDown is not.
I don't know why you are talking about MouseButton1Down... |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|