Is it possible to track multiple key presses with one script? So if I hold Q and E it prints "E"? Here is my current code:
function onKeyPress(inputObject, gameProcessedEvent)
if not gameProcessedEvent then
if inputObject.KeyCode == Enum.KeyCode.Q and inputObject.KeyCode == Enum.KeyCode.E then
print("E")
end
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Any help would be helpful. Also the "and" operation won't work. I already tried.

1 comment
you can use UserInputService:IsKeyDown(Enum.KeyCode.E) after checking if InputBegan keycode is E