Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
|
| 14 Feb 2015 04:35 PM |
Hey, I was testing with key:byte(), KeyDown, etc. and none of the code I was trying was working, so I was wondering if someone could get me started with the code and then I could finish the rest? I've been messing with this code for about an hour now, so yeah.
Thanks in advance for any help. |
|
|
| Report Abuse |
|
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
| |
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
| |
|
|
| 14 Feb 2015 04:40 PM |
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
local Funcs = { ["e"] = function() print("Success") end }
Mouse.KeyDown:connect(function(key) if(Funcs[key])then Funcs[key]() end end) |
|
|
| Report Abuse |
|
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
| |
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
|
| 14 Feb 2015 04:43 PM |
okay, thanks, but this errors?:
ServerScriptService.Script:2: attempt to index local 'Player' (a nil value) |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2015 04:44 PM |
| Must be used in a localscript |
|
|
| Report Abuse |
|
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
| |
|