My code is
local toggle = script.Parent.Frame.Toogle
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then --So on
How can I disable it when the player is chatting, it messes up the game if it activates.
Any thoughts?

1 comment
It works, thanks!