TextChatService.ChatInputBarConfiguration.TextBox is nil?

Hi, I’m having trouble accessing the TextChatService’s TextBox at the moment because ChatInputBarConfiguration.TextBox is nil. This is the code I’m using to access it:

UserInputService.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Keyboard then
        local textBox = TextChatService.ChatInputBarConfiguration.TextBox
        print("Textbox", textBox)
    end
end)

But everytime I type it just prints nil into the Output. The reason I need to access this is to check what the player’s currently typing so I can show an autofill hint if needed. Is this a bug or am I missing something?

You misunderstand what that property is meant to represent. It does not act as a reference to the integrated text-box. It is meant for you to assign your own text-box to override the previous one. It is a component of the UI customization front for the new system

https://create.roblox.com/docs/reference/engine/classes/ChatInputBarConfiguration#TextBox

1 Like

Oh I see, that makes sense. Thanks very much! :smiling_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.