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

How to put players into teams?!

I have two teams Criminals (Bright Orange) and Cops (Bright Blue) How would i move players from a lobby team into these two teams Thanks!

1 answer

To change a player's team, you need to change their TeamColor property which is a brickcolor value. Simply set their TeamColor property to the teamcolor of the team. Also make sure their Neutral property is false.

local players = game:GetService'Players'
local player = players:FindFirstChild'PlayerName'
player.Neutral = false
player.TeamColor = BrickColor.new("Bright blue")

1 comment

0

Thank you! You have just made my day

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