When typing say i say in chat "few" or something anything with an f it will now print hi how would i make it so it doesn't work when typing?
local UIS = game:GetService('UserInputService') UIS.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.F then print("hi") end end)
Hi ATestAccount420,
local uis = game:GetService("UserInputService"); uis.InputBegan:Connect(function(key, gp) if key.KeyCode == Enum.KeyCode.Q and not gp then -- Here, you can see that I checked if it's not gp, meaning to check if it's not a game processed event. print("Worked."); end end)
Thanks,
Best regards,
~~ KingLoneCat