Cr0ws
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1545 |
|
|
| 20 Aug 2014 03:19 PM |
plr = game.Players.LocalPlayer mouse = plr:GetMouse() Eq = false mouse.KeyDown:connect(function(key) if key == "f" then Eq = true end
--Player presses f again.. Eq = false
end) |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 20 Aug 2014 03:43 PM |
local eq = false mouse.KeyDown:connect(function(Key) key=Key:lower() if key=="f" then if eq==false then eq=true else --dostuff eq=false end end end) |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 20 Aug 2014 03:56 PM |
plr = game.Players.LocalPlayer mouse = plr:GetMouse() keys = {} speed = 0.1 mouse.KeyDown:connect(function(key) if not keys[key:byte()] then keys[key:byte()] = true delay(speed,function() keys[key:byte()] = nil end) if mouse.KeyDown:wait():byte() == key:byte() and keys[key:byte()] then print(key,'with a byte of',key:byte(),'has been pressed.) end end end) |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2014 04:37 PM |
give em a kl
lolol
jk u can just stalk dem
If we couldn't laugh, we would all go insane. | PropheticExtinction |
|
|
| Report Abuse |
|
|
Cr0ws
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1545 |
|
| |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 21 Aug 2014 07:29 PM |
local lastPressed = {} local doubleTapTime = .1 game:GetService'UserInputService'.InputBegan:connect(function(inputObj) if inputObj.UserInputType == Enum.UserInputType.Keyboard then lastPressed[inputObj.KeyCode] = lastPressed[inputObj.KeyCode] or 0 local timePressed = tick() if timePressed - lastPressed[inputObj.KeyCode] <= doubleTapTime then --Execute Code end lastPressed[inputObj.KeyCode] = timePressed end end) |
|
|
| Report Abuse |
|
|