As you can see in the video attached to this post, the chat bubble works perfectly for the LocalPlayer, however, for other players (and I suspect other NPCs), it’s veeeeeery glitchy. My characters do not contain Humanoids, however, that shouldn’t matter as it is evidently working for the LocalPlayer’s character which also does not contain a Humanoid.
This is the code which is responsible for creating the chat bubbles:
local TextChatService = game:GetService("TextChatService")
local PlayersService = game:GetService("Players")
return {
Initialize = function(self)
TextChatService.MessageReceived:Connect(function(textChatMessage: TextChatMessage)
local textSource = textChatMessage.TextSource
if not textSource then
return
end
local player = PlayersService:GetPlayerByUserId(textSource.UserId)
if not player then
return
end
local character = player.Character
if not character then
return
end
TextChatService:DisplayBubble(character.Head, textChatMessage.Text)
end)
end
}
And yes, I’ve tried ChatService’s Chat method, exact same behavior.
What specifically is wrong with my character setup? DisplayBubble is meant to work for non-humanoids as well from what I can tell and the functionality itself doesn’t seem like it has much to do with a humanoid - displaying a Billboard GUI attached to a BasePart with an offset.
Also, this does not explain how it works perfectly for the LocalPlayer’s character as seen in the video attached to the post.
This is what my Character looks like. The limbs are turned into MeshParts (head NOT included), a controller manager is now responsible for moving the character and animations are done through the AnimationController’s Animator instead of the usual Animator under Humanoid.
I tested it, and the bubbles work without the Humanoid and just the AnimationController and Animator.
Have you tried using no modified character to see if it works? It’d help to at least narrow down the problem. Start by taking out all steps of your character setup, then add them back one by one and test to see if they cause the problem.
It is at these times we need Roblox engineers, they know the actual internals of how these things work.
I’ll try some things in the mean time. Thanks for your all help.
Also, just to re-iterate, when you said you tested it and it worked, did you make sure OTHER players’ chat bubbles were behaving as expected? The LocalPlayer’s does, other players’ chat bubbles don’t.
And if so, could you send a repo place?
Yes, I checked other players. All I did was make a dummy, replace his humanoid with an AnimatorController and Animator, make everything but his head and root a MeshPart, and make the script you provided generate a bubble for the dummy when I talk.
For other players using the actual character setup you gave, no, I never tried that.
This still seems to be broken. I have NPCs with all parts (humanoid, head, HumanoidRootPart, rigged R15 and running from client. Does not work. Agree it might be related to the update,.