Pressing "/" key doesn't focus the player to chat box

I disabled chat history (so it will be proximity chat) with this script, not sure if something easier exists or not:

local chatGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Chat"):WaitForChild("Frame")

chatGui.ChatChannelParentFrame:Destroy()

chatGui.ChatBarParentFrame.Position = UDim2.new(0,0,0,0)

Now pressing slash key doesn’t focus the player to ChatBox. I’ve looked for a conflict basically in every default chat script and I couldn’t find anything. It doesn’t depend on ChatChannelParentFrame’s existance. How can I fix this?

Thats an annoying problem , i had this problem before. i just changed something and it started to work.

Can you tell me that “something” so I can try it out?

open chat history and try to focus with “/” button

and then close chat history. if its not working idk what it can be.

Point is, I don’t want to open it. I’m trying a different solution right now.

1 Like

Solution.