i have a script that if i press a key it makes everything invisible it works but if im typing and i press the key while typing it would work too, how do i stop it when im typing?
this is what im using
game:GetService("UserInputService").InputBegan:connect(function (input)
if input.UserInputType==Enum.UserInputType.Keyboard and input.KeyCode==Enum.KeyCode.X then
--CODE
end
end)

1 comment
thank you very much