bibbs123
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 24994 |
|
|
| 16 Feb 2013 09:10 PM |
| If I put a local script in a GUI that checks for KeyDown, would it work? |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
bibbs123
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 24994 |
|
|
| 16 Feb 2013 09:16 PM |
| Okay... I didn't know if you could only do it in tools and hopperbins. thanks |
|
|
| Report Abuse |
|
|
goalzero
|
  |
| Joined: 29 Sep 2010 |
| Total Posts: 132 |
|
|
| 16 Feb 2013 10:27 PM |
Also, If you use a localscript:
local Player = game.Players.LocalPlayer local MyMouse = Player:GetMouse()
MyMouse.KeyDown:connect(function(key) if key == 'q' then print('Victory!') end end)
I hope |
|
|
| Report Abuse |
|
|
bibbs123
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 24994 |
|
|
| 16 Feb 2013 10:59 PM |
I just did
function keydown(key) print(key) end
script.Parent.Parent.Parent:GetMouse().KeyDown:connect(keydown) |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 16 Feb 2013 11:47 PM |
Is your script inside of a LocalScript? If it use, you can use game.Players.LocalPlayer instead of script.Parent.Parent.Parent
[[ Usering ]] |
|
|
| Report Abuse |
|
|