How would I make UserInputService on a keyboard not run when someone is typing in chat? Because if I was doing a gui pop up it would be annoying because you would have to close the gui off…
input events has a parameter of gameProcessedEvent only do things when that is false
Consider switching to the “Context Action Service” it will automatically take care of this issue for you.
Edit: Try reading this, it fits your issue perfectly.
gameProcessedEvent didn’t work for me
It should work?
Try this for example
uis.InputBegan:Connect(function(key,gameProcessedevent)
if gameProcessedevent then return end
if key.KeyCode==Enum.KeyCode.Q then print'hi' end
end)
2 Likes
I was doing gameProcessedEvent but doing it wrong thanks for your guyshelp!
Just to explain “game processed event” as its namesake suggests, it implies that the input was processed by the game itself.