How can I make a team chat tags?

does the team changing script work, and is it client sided?

Like this

The script to change teams is a local script

change it to server sided, see if that fixes it

also, sick map!

Thanks but the local script is in StarterGui inside of a UI and I dont know how to make it work with out bing in the ui

just send a remote event to server in replacement of changing teams and change teams in server

Just to make sure I know what I am doing,
Making a script that fires the event when hit the UI
Then make the team changing part in ServerScriptService

I have Robux coming in the 20th. If you make it for me I will pay you 30 Robux (50 if you do it fast) if you say yes I will send you a model of everything

im on vacation where i cant access roblox, ill be back on 26/27/28 though
probably not what you want

oh and this is my alt

i can just give you it for free
its a tag system, anyway gtg now cya tmr

Your code can be adjusted to work fairly easily but it will have no effect if you’re using the old chat (LegacyChatService). I recommend switching to the new chat if you want your code to work. To do this, click on “TextChatService” in the Explorer and change ChatVersion to TextChatService.
image

The only thing I spot that is off about your code is that you’re checking for player.Team instead of player.Team.Name. Your adjusted code will look like the following:

-- LOCAL SCRIPT INSIDE STARTERPLAYERSCRIPTS
---> services
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

---> variables
local TeamAN = "Animator"

---> main
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
	local properties = Instance.new("TextChatMessageProperties")

	if message.TextSource then
		local player = Players:GetPlayerByUserId(message.TextSource.UserId)
		if player and player.Team.Name == TeamAN then
			properties.PrefixText = "<font color='#F5CD30'>[Animator]</font> " .. message.PrefixText
		end
	end

	return properties
end

Useful documentation:
Customizing In-Experience Text Chat | Documentation - Roblox Creator Hub
TextChatService | Documentation - Roblox Creator Hub

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