I’m recreating Wordle in a Roblox game for fun, and I’m using a custom typing system rather than TextBoxes because they don’t provide enough customizability.
This is the current way I process keystrokes:
for Letter in pairs (ValidLetters) do
ContextActionService:BindAction(Letter, function(_, UserInputState)
if UserInputState ~= Enum.UserInputState.Begin then return end
InputLetter(Letter)
end, false, Enum.KeyCode[Letter])
end
The issue is that the O and I keys are already binded to zooming the camera in and out, and that ContextActionService doesn’t process them, even when I use :BindActionAtPriority().
I managed to get around this with the WASD keys using
game:GetService("ControllerService"):ClearAllChildren()
Does anyone know how I’d do this with the zoom in and zoom out keys? Thanks in advance.