menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
key-bind
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
key-bind
drysty
Join Date: 2013-12-07
Post Count: 1913
#228395515
Sunday, December 03, 2017 8:04 PM GMT
how to function pls just need start
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
bigboy77584
Join Date: 2009-01-06
Post Count: 1003
#228395799
Sunday, December 03, 2017 8:09 PM GMT
http://wiki.roblox.com/index.php?title=ContextActionService_tutorial
or
http://wiki.roblox.com/index.php?title=API:Class/UserInputService
UserInputService is more popular. The events you'll most likely need for it are InputBegan, InputChanged, and InputEnded.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
SatanxD666
Join Date: 2017-02-08
Post Count: 77
#228397019
Sunday, December 03, 2017 8:32 PM GMT
if key == “” then — in between the “” put whichever key — write ur code here end or if Enum.KeyCode.Key then — in “Key” put whichever key u want — write ur code here end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Skull_LDS
Join Date: 2011-12-20
Post Count: 266
#228399209
Sunday, December 03, 2017 9:18 PM GMT
In local script: plr = game.Players.LocalPlayer mouse = plr:GetMouse() mouse.KeyDown:connect(function(key) if key == "x" then -- do stuff end end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
ScriptBased
Join Date: 2011-07-20
Post Count: 1912
#228400752
Sunday, December 03, 2017 9:50 PM GMT
KeyDown is deprecated Use UserInputService
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right