Remove Chat Bubble When Character Becomes Transparent

Hi, I’m working on a portal which makes a player’s character transparent to other clients. My end has been going fine until I realize your chat bubbles still appear over you after you’re invisible. I solved this post-entry by forcing the player’s chat to a separate chat channel and muting them in the global one. However their current chat bubbles still persist after entering the portal.

https://gyazo.com/066079e38f49232d105419490da66849

I’ve forked the Chat.BubbleChat localscript with the following connections that’ll listen for when a player interacts with the portal however to no avail on what chat bubbles even exist over their character, so I’m at a loss here.

function VoidChatBubbles(Object)
    if Object and Object:IsA("Player") and Object.Character then
	    local Origin = Object.Character
	    local bubbleQueue = this.CharacterSortedMsg:Get(Object.Character).Fifo
	    local BubbleCount = bubbleQueue:Size()
	    
	    if BubbleCount < 1 then
		    print("No bubbles chats!")
	    else
		    print("Bubble chats spotted!")
	    end
    end
end

CollectionService:GetInstanceAddedSignal("Void"):Connect(VoidChatBubbles)
CollectionService:GetInstanceRemovedSignal("Void"):Connect(VoidChatBubbles)
3 Likes

Maybe try using a chat command processor to return false if the character is invisible? I only have surface knowledge about the roblox chat system.

My problem isn’t whether or not the character is visible, nor is that sensical for the situation. My problem is getting the existing chat bubbles and destroying them.

Oh. Can’t you check the chat logs and connect a childadded event to it?

Bubble chat is a CoreGui so I have no access to the BillboardGui instances themselves without forking the script and seeing if I can work with it.

1 Like

Any solutions since this? I’ve been attempting to do the same but I have yet to receive a successful outcome.

1 Like

I stopped by here today for the same problem, no one has given any solutions yet. :frowning: