Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you chat without interacting with Keybinds?

How do you chat without accidentally setting Keys in UserInputService? Everytime I chat or use a specific key button, it lets off something I put in code in UserInputService?

How can I chat without having to deal with setting off key buttons?

1 answer

✓ Accepted answer

I'm not sure what you mean, but I'm assuming you meant that you don't want a UserInputService event such as InputBegan to fire whilst chatting. To accomplish this, you use the gameProcessed parameter of the event.

local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(key,gameProc)
  if not gameProc then
    --handle KeyCodes
  end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.