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?
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?
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.