Tranhead
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 4217 |
|
|
| 31 Jul 2010 07:02 PM |
function keyDown(key)
if (key == "t") then --what will happen end
end
function onButton1Down(mouse) |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:03 PM |
function keyDown(key)
if (key == "s") then
end
end
function onButton1Down(mouse)
Use WASD. S is Down. |
|
|
| Report Abuse |
|
|
TheDigDug
|
  |
| Joined: 23 Nov 2009 |
| Total Posts: 156 |
|
|
| 31 Jul 2010 07:06 PM |
| using aswd is not necessary |
|
|
| Report Abuse |
|
|
Tranhead
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 4217 |
|
| |
|
Tranhead
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 4217 |
|
|
| 31 Jul 2010 07:27 PM |
This would work with a hopperbin right?
|
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:30 PM |
| yes.. but rember to fix your conenction line! |
|
|
| Report Abuse |
|
|
Scriptec
|
  |
| Joined: 16 Feb 2010 |
| Total Posts: 1492 |
|
|
| 31 Jul 2010 07:32 PM |
function keydown(key,mouse) if key == "w" then print(mouse.Target.Name) end end
function click(mouse) print(mouse.Target.Name) end
function sel(mouse) mouse.KeyDown:connect(function(key) keydown(key,mouse) end) mouse.Button1Down:connect(function() click(mouse) end) end
script.Parent.Selected:connect(sel) -- I just writ this on my ipod. My hand aches. |
|
|
| Report Abuse |
|
|
Tranhead
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 4217 |
|
| |
|