Is there a way to detect if the chat box(?) is open?

image
Can I detect if that box is open?
I want to make my status bar which you can see get smaller when its open so everything is still visible.

I tried the following but it always says active

RunService.RenderStepped:Connect(function()
    if StarterGui:GetCoreGuiEnabled("Chat") then
        print('active')
    else
        print('inactive')
    end
end)

That’s because GetCoreGuiEnabled expects an enum. Enum.CoreGuiType.Chat is the chat ui. However idk if this is what you want as I’ve never tested it before, but this is why you’re getting that error.

1 Like