As someone who plays Roblox a few times a week, and also play the games with a lot of different shortcuts to let’s say, open the shop, attack, or exit to menu, keyboard hotkeys might interfere with my experience.
The keys f1 - 12
are commonly used as device hotkeys for the program(Windows, Mac, etc.), and sometimes, games need to use the same keys to improve accessibility in their game.
I myself use these hotkeys for convenience purposes, but, I really don’t need them in game, where the hotkeys can be used for gaming convenience. For example, I don’t want to open the shop with f3
and increase the brightness doing so(f3
increases the brightness of the monitor), and mute the speakers with f6
. These little things can get annoying, and generally people would have a worse experience.
Code examples can be:
--// Local Script
local UIS = game:GetService("UserInputService")
UIS:SetHotkeyEnabled(Enum.KeyCode.F1, false) -- Disables the "f1" hotkey
UIS:SetHotkeyEnabled(Enum.KeyCode.F2, false) -- Disables the "f2" hotkey
UIS:SetHotkeyEnabled(Enum.KeyCode.F3, true) -- Disables the "f3" hotkey
UIS:SetHotkeyEnabled(Enum.KeyCode.F4, true) -- Disables the "f4" hotkey
print(UIS:GetHotkeyEnabled(Enum.KeyCode.F1)) -- false
Then, why don’t they just disable them themselves?
As I said, people want their hotkeys because it’s convenient, and some people just don’t want to do it/don’t know how to.
This would help me as a developer because this can improve gameplay for my games.