hello, I was searching through the Roblox Developer API and found InputObject.IsModifierKeyDown, and wanted to know what it is, and a use for it. any information would be great
So that’s pretty much telling the script if they press a key this will happen.
These are your modifier keys.
This function checks to see if the modifier key you passed as the argument is pressed down.
hmm from background knowledge, is modifierkey useful because it allows the developer to be able to detect if either of the side of keys is pressed down without having to do an or statement with InputBegan?(for example:to detect if either the right shift or left shift is down)
It’s more along the lines as:
X key is pressed down
- You also know Shift was pressed
You could have a special thing for both x and shift x without a extra statement. Also, either shift key would work.
That’s basically all there is to it.
To answer your question though, yes, ‘Shift’ returns true for both left and right shift.
hmm alright, thanks for the solution!