How can I disable team changed system message?

How can I disable like {Team} You are now on the 'Team' team. team changed system message?
I can’t find any kind of information ;-;
캡처_2020_08_09_18_10_22_227

I don’t know of a way to do this without forking chat scripts but since you want this so bad this looks like the only way.

This snippet of code is under Chat > ChatModules > TeamChat:

local PlayerChangedConnections = {}
	Players.PlayerAdded:connect(function(player)
		local changedConn = player.Changed:connect(function(property)
			local speakerObj = ChatService:GetSpeaker(player.Name)
			if speakerObj then
				if property == "Neutral" then
					PutSpeakerInCorrectTeamChatState(speakerObj, player)
				elseif property == "Team" then
					PutSpeakerInCorrectTeamChatState(speakerObj, player)
					if speakerObj:IsInChannel(channel.Name) then
						local msg = ChatLocalization:FormatMessageToSend("GameChat_TeamChat_NowInTeam",
							string.format("You are now on the '%s' team.", player.Team.Name),
							"RBX_NAME",
							player.Team.Name
						)
						speakerObj:SendSystemMessage(msg, channel.Name)
					end
				end
			end
		end)
		PlayerChangedConnections[player] = changedConn
	end)

You want to focus on these lines:

local msg = ChatLocalization:FormatMessageToSend("GameChat_TeamChat_NowInTeam",
	string.format("You are now on the '%s' team.", player.Team.Name),
	"RBX_NAME",
	player.Team.Name
)
speakerObj:SendSystemMessage(msg, channel.Name)

then just remove them

1 Like