How to disable Input when chatting?

I have made a gun that has a number of hotkeys to make it reload ETC. What Im wanting to achieve is that whenever you are typing in roblox chat those inputs wont go off if you press such letter.

Example:
https://gyazo.com/3334e665b85bd6e5042f684d30a364ae

Note: Im using UserInputService

6 Likes

UserInputService events such as InputBegan and InputEnded pass a parameter called “gameProcessedEvent”. Simply include this parameter in your connection and write:

if gameProcessedEvent then return end

http://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan

23 Likes

So if thats true that means the player is chatting or using some other Core service?

3 Likes

Correct.

1 Like