How to know whenever the chat CoreGui is turned on

  1. What do you want to achieve?
    I want to achieve functionality similar to that of KAT where if you toggle the chat button, it disables or enables their chat accordingly.

  2. What is the issue?
    My issue is that I can’t seem to find anywhere online on how to achieve this. I’m trying to make a custom chat system, and I don’t want to have to create a separate setting in order to disable it.

  3. What solutions have you tried so far?
    I’ve tried making a separate setting for it, and while it works, the convenience is poor. Using Roblox’s built-in chat toggle would make this wayy easier.

And by chat toggle, I mean this thing:
image

Thanks for the help!

1 Like

I’m not certain about the issue, but can’t you just simply use

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

Inside a TextButton to disable the chat that way?

2 Likes

Ah, I don’t think I clarified.

I want to grab the status of the chat, whether its enabled or not. Not by disabling it with StarterGui:SetCoreGuiEnabled, but whenever the client toggles it.

1 Like

Nevermind, I just realized I can use StarterGui:GetCore.

1 Like