Help with textchatservice bubble

i had a working typing bubble script that works perfectly on the legacy chat service but for this game i have to use the new textchatservice but i cant find a way to convert it to the latest textchatservice. What this script does is pop up a typing bubble above ur head only when the player is typing their are 2 scripts one for server and the other in client ( put in startergui). Any help to convert this script to the latest Textchatservice would be greatly appreciated

server script

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAppearanceLoaded:Connect(function(Character)
		local TypingBubble = script.TypingBubble:Clone()
		TypingBubble.Parent = Character.Head
	end)
end)

game.ReplicatedStorage.ToggleTypingBubble.OnServerEvent:Connect(function(Player, Toggle)
	Player.Character.Head.TypingBubble.Enabled = Toggle
end)

client script ( in startergui )

local Player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

UserInputService.TextBoxFocused:Connect(function(TextBox)
	if TextBox.Name == "ChatBar" then
		game.ReplicatedStorage.ToggleTypingBubble:FireServer(true)
	end
end)

UserInputService.TextBoxFocusReleased:Connect(function(TextBox)
	if TextBox.Name == "ChatBar" then
		game.ReplicatedStorage.ToggleTypingBubble:FireServer(false)
	end
end)

this is for reference
image

I don’t see a ChatBarFocus property on PlayerGui

1 Like

my bad i pasted a different script , i updated the script that worked for the legacy chat service , now i want it to work for the new TextChatService could u help me with that?

My guess is the name of the chat bar changed try enabling the coregui view and checking what it’s called

1 Like

ur probably right in legacy chat service chatbar can be seen
image

but when i switch to textchatservice the whole chat below the soundservice in the pic is gone , so i dont know what would i replace “ChatBar” with do u have any clue