Listen here, DO YOU also see the documentation?
You should be thankful that we’re trying to help you.
Where do you see, this method is outdated? Point me. I don’t see it.
I READED DOCUMENTATION TO ANSWER YOUR DUMB QUESTION. THERE’S NO DAMN SIGN IT’S OUTDATED. AND IT WORKS. PUT THIS DAMN CODE INSIDE COMMAND BAR WHILE PLAYTESTING, AND YOU’LL SEE YOUR STUPID NPC SAYS “HELLO”.
I’ve got really mad. If you read all documentations and you’re very smart, then don’t post here
What are you so mad about? IIt seems I misworded that sentence. But anyways, roblox is recommending users to use TCS:DisplayBubble to move away from this going to be outdated service.
There is literally no need to be soo hyper about smthing ngl.
Lmao, chill out dude. seems like you also didn’t read my post. I want the npc to say that line in a script and not the command bar. Read the topic god damn it.
Also if you don’t have a solution to a question then just don’t even try to solve it. Literally it only leads to arguments.
So from what I’ve read about both functions and tested myself, Chat:Chat() should work on the server. Personally didn’t know that myself but hey I guess that’s good to know (even though it’s deprecated). However, TextChatService:DisplayBubble() is exclusive to the client and can only be executed from LocalScripts. This also means that bubble messages from DisplayBubble() will only be visible to client that is firing the function. If you want all players in the server to see the bubble messages using this method, you’ll need to use a RemoteEvent and fire it to all clients from the server and handle the request from the client by calling DisplayBubble().
Example:
-- Server
local ReplicatedStorage = game:GetService('ReplicatedStrorage')
local remote = ReplicatedStorage.RemoteEvent
local message = 'some message here'
local partOrCharacter = -- Whatever you're trying to display the message on.
remote:FireAllClients(partOrCharacter, message)
-- Client
local TextChatService = game:GetService('TextChatService')
local ReplicatedStorage = game:GetService('ReplicatedStrorage')
local remote = ReplicatedStorage:WaitForChild('RemoteEvent')
remote.OnClientEvent:Connect(function(partOrCharacter, message)
TextChatService:DisplayBubble(partOrCharacter, message)
end)
What code are you currently using to call Chat()? As others have stated in this post, all you need for this function is the character’s head and the string message.
local Chat = game:GetService('Chat')
Chat:Chat(character.Head, 'Message content here.')
Just tested again in studio with a server script and it worked fine. What is the script you’re using to call the function? If you post your code, maybe I can help you…
Here’s a quote directly from the documentation for the Chat method:
Since dialogs are controlled by a LocalScript, you will not be able to see any dialogs created from this method unless you are running in Play Solo mode.