|
| 28 Nov 2017 01:38 PM |
| Hello, I have got this script which stats "M2.KeyDown:connect(updateAnimVars)" and M2 is "Local M2 = Player:GetMouse()" Why isn't this working? This is in a Normal script not a Local. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 01:41 PM |
you can only get the player's mouse in a localscript
╴ “I seem to get mentioned alot in videogames.. i wonder why..” |
|
|
| Report Abuse |
|
|
| |
|
Extuls
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 5557 |
|
|
| 28 Nov 2017 01:47 PM |
Also KeyDown is deprecated.
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 28 Nov 2017 01:49 PM |
i love @extuls
now just start mentioning how connect is deprecated and ill weeb you even more |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 01:51 PM |
| Is there a way to do this without a local script? I am trying to make a weapon FE and it's very confusing, I have got so far and I can't get past this problem. I have tried making a local script and putting parts in it but it isn't having any of it? |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 28 Nov 2017 01:53 PM |
It sounds like you're doing animations for this so it should be done on the client, in a localscript, anyways
also UserInputService.InputBegan instead of KeyDown, there was a reason KeyDown was deprecated, it does it's job poorly compared to the modern options |
|
|
| Report Abuse |
|
|