of     1   

noobkiller3759
#221225438Thursday, July 13, 2017 6:27 PM GMT

Hello, I'm trying to add another key to activate the chat (like when you press "/"). I know the activation (focus) command activates on KeyDown and the script responsible for that is PlayerScripts.ChatScript Nonetheless I can't find the exact line, so I can't modify the keycode. The script contains many modules, I tried searching for "KeyDown", but there's no match. Does anyone know how to add or change the activation hotkey? (By activation I mean "I press the key and after that I type into chat and send with Enter")
noobkiller3759
#221236476Thursday, July 13, 2017 8:32 PM GMT

If I delete the modules, it still work, probably because they are still loaded into memory. Once I delete the localscript, pressing / doesn't work.
noobkiller3759
#221304476Friday, July 14, 2017 2:57 PM GMT

Bump, still noone?
CelluloidCats
#221304897Friday, July 14, 2017 3:04 PM GMT

KeyDown is deprecated look for use of ContextActionService or UserInputService
SwagMasterSteff
#221305671Friday, July 14, 2017 3:20 PM GMT

If can't find the error then open the output and if something doesn't work you will get a red line of text and somewhere in the beginning of the text is a number and the number is what line of code the game doesn't understand SwagMasterSteff
noobkiller3759
#221305915Friday, July 14, 2017 3:24 PM GMT

It doesn't produce any error. However I found a way around using the run-time events. Not the best solution, but it works. Case solved B-)
iiNemo
#221308971Friday, July 14, 2017 4:08 PM GMT

game:GetService('UserInputService').InputBegan:Connect(function(Input) if Input.KeyCode == Enum.KeyCode.Slash then -- Code Here For What Happens When Player Presses Slash Key.. end end)
iiNemo
#221309069Friday, July 14, 2017 4:09 PM GMT

script.Parent.TextBox.FocusLost:Connect(function(Enter) if Enter then -- What Happens If Player Presses Enter end end) If this doesn't work do the same userinputservice thing I said except instead of .Slash make it say .Enter
noobkiller3759
#221311585Friday, July 14, 2017 4:42 PM GMT

Well if I knew what happens after I press slash, I would not need to look for it, I would just bind the opening to the new key.

    of     1