Hello ScriptingBuilders! Indeed, I require your assistance. :D So, I have a script similar to this (taken from here:
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.R then
print("R was pressed")
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
And the script works all fine whenever I press a key (or in this case "R"), but it also works when typing in the chat and when pressing a key does something more visual (such as cloning a ScreenGUI), it can get pretty distracting and at a point, frustrating. Now, I haven't found anything about this on the forums, so I was wondering if anyone could help me out here. The help is always appreciated. Thanks. :D -IronSpider671

1 comment
Ah, I see. I guess I overlooked that. Thanks!