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
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)
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?
ur probably right in legacy chat service chatbar can be seen
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
I know it’s been a long time since you posted this, but did you ever figure it out?
I had the same exact problem and I fixed mine by checking if ChatInputBarConfiguration.IsFocused == true
local Player = game.Players.LocalPlayer
local TextService = game:GetService("TextChatService")
local ChatInputBar = TextService:FindFirstChildOfClass("ChatInputBarConfiguration")
ChatInputBar:GetPropertyChangedSignal("IsFocused"):Connect(function()
if ChatInputBar.IsFocused == true then
game.ReplicatedStorage.ToggleTypingBubble:FireServer(true)
elseif ChatInputBar.IsFocused == false then
game.ReplicatedStorage.ToggleTypingBubble:FireServer(false)
end
end)