How to Add a Toggle for Bubble Chat Only in TextChatService

I need help implementing a feature for TextChatService. My goal is to create a toggle that allows players to switch between two modes:

  1. Bubble Chat Only: Messages should only appear above players’ heads (Bubble Chat), but not in the GUI chat window.
  2. Bubble + GUI Chat: The message should be visible in both the bubble chat and the chat GUI.

And is there a way to place the button in the chat GUI?