How do I make Chat:Chat() only show for one player

How can I make the chat service chat function only show for one player?
I have made an npc that uses this to talk but all players can see it, not just the player that clicked the click detector

This function:

game:GetService("Chat"):Chat("Hello There")

All players can see this, but I want only the player that clicked the part to see it
image

1 Like

To make it so that only 1 player can see the chat message, use a remote event to fire to only the player who should see the message. Then using a local script, you will need to write some code so that the :Chat() function that you have shown in your post is carried out whenever the event is fired as it also works on the client side.

You may find this useful:
Remote Events Documentation

Here is an example of what the code in the local script may look like:

game.ReplicatedStorage:WaitForChild("RemoteEvent").OnClientEvent:Connect(function()
	game:GetService("Chat"):Chat('Example')
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.