Client
Check if an input is currently pressed.
input.key_down(keyname --[[ string ]])
input.key_down(keycode --[[ integer ]])
Using a keyname:
if input.key_down("F2") then print("F2 is currently pressed!") end
Using a keycode:
if input.key_down(60) then print("F2 is currently pressed!") end
Key codes/names list available here.
Last updated 5 months ago