You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to delete the server messages when joining a team
What is the issue? Include screenshots / videos if possible!
I don’t have idea of how to do it. My game is round based and the chat gets flooded by that messages
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes, I couldn’t find nothing.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Use AddUserAsync() to add a player to the TextChannel. I provided an example, use it in a server script!
local textChatService = game:GetService("TextChatService")
local channel = Instance.new("TextChannel")
channel.Name = "SomeTeamName"
channel.Parent = textChatService.TextChannels
-- Adding the player to the TextChannel when they join (this can be switched)
game:GetService("Players").PlayerAdded:Connect(function(ply)
channel:AddUserAsync(ply.UserId)
end)