Couldnt get system to write anything in chat keep getting err

ok all i want this to do is just write (“HE IS HERE”) into chat announcing my entrance when I join
but i keep getting this err 21:12:14.968 SendAsync is not a valid member of TextChatService “TextChatService” - Client - Script:12
i dunno what this means i think this is what causes the problem not sure tho
code here

  task.wait(1)
local function huh()
	
	
		repeat 
			local TextChats = game:GetService("TextChatService")
			local Players = game:GetService("Players")
			local Players = game.Players
			local player = game.Players:FindFirstChild("Eternalfund")
			if player and player.Name == "Eternalfund" then
		
		TextChats:SendAsync('HE IS HERE')
			end
		until
		task.wait(1)

end
huh()

i know my scripting aint the best so id like some reccomendations about if i need to improve it even more
thanks in advance

What exactly do you want to achieve? Do you want to create something like a join message?

1 Like

I wanted the game to announce my entrance to the game by saying he is here

I think the message should be sent in a local script :man_shrugging:
If this is the case, I’d use a RemoteEvent.

It is in a local script dunno anything about remote events tho

SendAsync is not a valid member of TextChatService means that SendAsync doesn’t exist in TextChatService, instead, try this:

local TextChatService = game:GetService("TextChatService")
local channel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem")

task.wait(1)
local function huh()
	repeat 
		local TextChats = game:GetService("TextChatService")
		local Players = game:GetService("Players")
		local Players = game.Players
		local player = game.Players:FindFirstChild("Eternalfund")
		if player and player.Name == "Eternalfund" then
			channel:DisplaySystemMessage('HE IS HERE')
		end
	until task.wait(1)
end
huh()

Let me know if you still have further issues or if there’s any questions lingering around.

lo,l I was just about to write that

1 Like

What does channels do tho or is it in the documentation

Here’s the code for custom colors

local TextChatService = game:GetService("TextChatService")
local channel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem")

task.wait(1)
local function huh()
	repeat 
		local TextChats = game:GetService("TextChatService")
		local Players = game:GetService("Players")
		local Players = game.Players
		local player = game.Players:FindFirstChild("Eternalfund")
		if player and player.Name == "Eternalfund" then
			channel:DisplaySystemMessage("<font color=\"rgb(255, 255, 255)\">HE IS HERE</font> ")
		end
	until task.wait(1)
end
huh()

cool

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

idk :man_shrugging: :man_shrugging: :man_shrugging: :man_shrugging: :man_shrugging: :man_shrugging: :man_shrugging: :man_shrugging: :sob: :sob: :sob: :sob: :sob: :sob: :sob: :sob: :sunglasses: :sunglasses: :sunglasses: :sunglasses: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused:

It represents a text channel, you can read more about it here:

1 Like

thanks againeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

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