"Click here or press "/" to chat!" I don't know how to set focus to the TextBox for the custom chat GUI i have created.
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(key)
if key == "/" then -- I even tried it with a simple key, to test to make sure the key wasn't the problem.
script.Parent.TypeHolder.TextBox.GotFocus = true
script.Parent.TypeHolder.TextBox:CaptureFocus()
end
end)
That's what i have so far, and it fails every time.

4 comments
What is this "GotFocus" property?
gotfocus lol
I was using the CoreScript for chats from ROBLOX: 'self.GotFocus = true' and 'self.ChatBar:CaptureFocus()'
If your question has been answered, please accept the answer that helped you solve your question.