Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you change ones team?

I am quite confused here, I am playing around with teams. I do not know what to do to make someone in a team, with this script

a = Instance.new("Team",  game:GetService'Teams')
a.Name = "TeamExample"
a.TeamColor = BrickColor.Random()

1 answer

✓ Accepted answer
local a = Instance.new("Team",  game:GetService'Teams')
a.Name = "TeamExample"
local newTeamColor = BrickColor.Random()
a.TeamColor = newTeamColor
--Edit the following for your own needs
Game.Players.PlayerAdded:connect(function(plr)
    plr.TeamColor = newTeamColor
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.