How do i use I and O for custom user input

On default the keys i and o have zooming in and out function. For some reason i cannot use them in userinputservice, probably because of that, and i’m not sure how to fix that. My game doesn’t allow the player to zoom in and out anyways. Is there some property that i need to change? Or do i have to script something?

Because the default roblox scripts recognize I and O as zooming keys, they are marked as game processed. It is common practice to check if the input is game processed, and if it is, ignore it. We do this because typing in the chat is also considered game processed, so your code doesn’t run while typing in-game.

You can override the I and O keys using ContextActionService.

1 Like