TextChatService:DisplayBubble() or the to be deprecatedChatService:Chat() doesn’t work on studio. The only way to make them work is to run the script through command bar.
Reproduction Steps:
Make a script in an npc and type this script:
local tcs = game:GetService("TextChatService")
tcs:DisplayBubble(script.Parent.Head,"Hello!")
It should work but it doesn’t.
Expected Behaviour:
TextChatService:DisplayBubble() or the to be deprecatedChatService:Chat() should show the bubble while running and play testing!
Actual Behaviour:
TextChatService:DisplayBubble() or the to be deprecatedChatService:Chat() should show the bubble while running and play testing but yet it doesn’t and I have to do it using command bar.
Hello and thank you for the bug report! I took a look at the place file you submitted, and I believe the bubble is not showing up because the Script’s RunContext is not Client. TextChatService:DisplayBubble only works when called in a LocalScript or in a Script with that RunContext (documentation: https://create.roblox.com/docs/reference/engine/classes/TextChatService#DisplayBubble)
Would you be able to change the RunContext and let me know if that works for you? Testing that change locally showed the bubbles on my end, but I’d like to make sure it works for you as well.
Hi again! Just following up here, we aren’t able to reproduce this bug after swapping the RunContext of the script to Client, which is necessary to use this function. We’ll close this bug report given this, but if you are still running into problems with this please feel free to file another bug report. Thank you!