How to remove the team change notification in 2024? [UNSOLVED]

So, I’m basically about to finish a game, and this is literally the last step I need to take before testing. I have seen others do it but it was always in older versions of studio. Is there any way to do it with the new TextChatService or with a script?

1 Like

For clarification basically when the player changes a team I don’t want it to say “You are now on the [TEAM NAME] team.”

1 Like

You can go to the properties of the chat service and disable CreateDefaultTextChannels if you are using the new TextChatService, for the legacy TextChatService you can comment out line 172 of the TeamChat module, here is a tutorial for legacy TextChatService

1 Like

I’m not seeing the Chat group in the workspace when I play my game. All I see is text chat service. Also, when I disable the CreateDefaultTextChannels in the TextChatService, it also prevents me from seeing what I type in the chat.

1 Like
TextChatService.OnIncomingMessage = function(textChatMessage)
    if textChatMessage.Metadata == "Roblox.Team.Success.NowInTeam" then
        local override = Instance.new("TextChatMessageProperties")
        override.Text = " " -- note the intentional whitespace is included int he string
        return override
    end
end

this should work (without disabling default channels)

That worked, but is it possible to make all player’s text chat color one color instead of changing it depending on which team they’re on?

I honestly have no clue to prevent the players name in chat from being the color of their team, I’m sure there might be some topics out there relating to this and maybe you can find a script that fixes this issue.

This can be set with the same function as listed above.

local TextChatService = game:GetService("TextChatService")

local YourColour = Color3.new(1,.5,1):ToHex()

TextChatService.OnIncomingMessage = function(textChatMessage: TextChatMessage)
	local properties = Instance.new("TextChatMessageProperties")

	local textSource = textChatMessage.TextSource
	if textSource then
		properties.PrefixText = string.format("<font color='#%s'>%s</font>", YourClolour, textChatMessage.PrefixText)
	end

	return properties
end

Highly recommend checking out the Text Chat page

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