I use UserInputService in my plugins to create keybinds for fast workflows. However, the keys 1, 2, 3, 4, and 5 keys are automatically bound to switching the user’s Select, Move, Rotate Scale, and Transform tools, and don’t appear to fire the UserInputService events as a result.
Reproduction Steps:
- Create a new script.
- Add the following code to the script -
game:GetService("UserInputService").InputBegan:Connect(function(input: InputObject, gameProcessedEvent: boolean) print(input.KeyCode.Name) end)
- Save the script as a local plugin.
- Press the 1, 2, 3, 4 or 5 keys. Nothing will be printed to console.
System Information:
AMD Ryzen 7 1700X Eight-Core Processor
16.0 GB Memory
AMD Radeon ™ RX 580
Beta Features:
I have the Dragger QoL Improvements beta feature enabled.
Expected behavior
The 1, 2, 3, 4, and 5 keys should act the same as any other key, firing all the relevant UserInputService events. Perhaps gameProcessedEvent would be set to true, since they’re already bound to an action in Studio.