How would i make team chat for multiple teams?

How would I make team chat for multiple teams? So Team1 and Team2 have the same team chat while Team3 and Team 4 have a different chat. Any help would be appriciated!

Roblox already has this implemented. You just have to use “/team” or “/t” before typing your chat message. However, if you want to customize this behavior then you will have to learn more about customizing the In-Experience Text Chat | Roblox Creator Documentation.

2 Likes

what script have u tried for this

1 Like

no script, I’m just genuinely confused on how to do this

1 Like

try doin

local Player = game.Players.LocalPlayer

if Player.TeamColor == “the team color in rgb” then
Chat1.Visible = true
Chat2.Visible = false
end

if Player.TeamColor == “other team” then
Chat2.Visible = true
Chat1.Visible = false
end

1 Like

is chat one meant to be team chat?

1 Like

chat one is the chat for both 1 and 2, and 3 and 4 is for chat 2

1 Like

If you don’t understand the chat system then you can start by reading some community tutorials on the subject. They can help introduce you to the concept and features.

Here’s a few I found on the subject:

You should also read the above link I provided about the lua chat system.

Now, for your problem regarding team chat. The easiest way to implement this would be to separate the team chats into their own channels. You can read the Adding Channels section on the lua chat system page.

You can also check out this earlier asked question about adding chat channels.

1 Like

the script i told u wont work unless u were making a custom chat gui
if it doesnt work either way, im sorry but i cant help

1 Like

Team chat is a feature built-in to Roblox, you can read more about it here:

https://developer.roblox.com/en-us/api-reference/function/Players/TeamChat