I have 2 games that heavily rely on ChatService since thats how the dialogue is spoken, is it working for any of you? I opened a normal baseplate and ran this code:
local chatservice = game:GetService("Chat")
while true do
wait(.4)
chatservice:Chat(script.Parent, "hello", Enum.ChatColor.White)
print("chatted")
end
is there anything wrong here? is this a roblox issue?
but i still cant get this to work with the new one
local chatservice = game:GetService("TextChatService")
while true do
wait(.4)
chatservice:DisplayBubble(game.Workspace.Part, "hello")
print("chatted")
end
it there something im missing, I dont know what is wrong
this game’s npcs are supposed to talk back. People in the servers were still talking so i asked one person if they could see the bubbles, and he said they could. This was very confusing so I asked if he was Canadian or not and he said he was not so now, if you are living in Canada, can you see the chat bubbles from NPCs in games??
But a newer and non-deprecated method is TextChatService:DisplayBubble(partOrCharacter: PVInstance, Message: string)
Example:
local TextChatService = game:GetService("TextChatService")
local Workspace = game:GetService("Workspace")
local Baseplate = Workspace:WaitForChild("Baseplate")
while task.wait(0.4) do
TextChatService:DisplayBubble(Baseplate, "Hello")
print("Chatted!")
end
IMPORTANT: This only works in LocalScripts and won’t be displayed on the server. You would have to use RemoteEvents
local plrs = game:service("Players")
local chatService = game:service("Chat")
function onCharacterAdded(char)
while true do
wait(.4)
chatService:Chat(char, "Hello! :P", Enum.ChatColor.Blue)
print("chatted")
end
end
plrs.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(onCharacterAdded)
end)
thank you both, I swear im not crazy, it wasent working before and people were complaining on my group wall the worst part is i changed one of the games so it uses textchatservice but I was using displaybubble on a server script. it is working now for me , i dunno what happened. thank you for your help