Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does Roblox have the capability for left/right input based on sensitivity?

Asked by 3 years ago

Hello!

What I essentially mean by this, is there a way to detect when the player moves left to right on the keyboard?

With the UserInputService, there is a way to detect when the player moves a joystick from left to right and it's quantified with a number. (the number being dependent on how far left or right you move it) However, this script only works with the joystick. (it does work with the mouse, but only when you have it right clicked) Is there a similar property that would yield me the same number I'm looking for but for detecting moving left to right on the keyboard? Or am I just stuck with detecting if the player pressed the 'A' and 'D' key?

Thank you for any help!

Answer this question