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
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.
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()