|
| 19 Sep 2017 10:09 AM |
| How do I make a script detect if someone is pressing a key? |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2017 12:48 PM |
| I forgot to add: to detect if a specific key is pressed |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2017 01:03 PM |
local MyMouse = game.Players.LocalPlayer:GetMouse() local plr = game.Players.LocalPlayer MyMouse.KeyDown:connect(function(key) if key == "h" then --code here end end)
edit the letter in between the quotation marks |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2017 02:23 PM |
| KeyDown is Depcricated. Use http://wiki.roblox.com/index.php?title=API:Class/UserInputService |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
| |
|