|
| 26 May 2014 03:24 PM |
local b1 = a.Button.MouseButton2Down:connect(function() Aim() end) local b2 = a.Button.MouseButton2Up:connect(function() UnAim() end)
Could someone please tell me how to change the mousebutton2's to connect with the key q? Thanks. |
|
|
| Report Abuse |
|
|
twerq
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 1057 |
|
| |
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 26 May 2014 03:28 PM |
local aiming = false
mouse.MouseButton2Down:connect(function() if aiming == false then aiming = true end end) mouse.MouseButton2Up:connect(function() if aiming == true then aiming = false end end) mouse.KeyDown:connect(function(key) if key:byte == 113 then if aiming == false then aiming = true elseif aiming == true then aiming = false end end end) |
|
|
| Report Abuse |
|
|
|
| 26 May 2014 03:37 PM |
^^^ Theres an error in keybyte-113 |
|
|
| Report Abuse |
|
|