Trying to Load characters in a team

As the title says, I’m trying to load any players in a certain team, however my script isn’t working, does anyone know what im doing wrong?

local players = game.Players:GetChildren()
	for player, v in pairs(players) do
						if players.TeamColor == BrickColor.new("Really blue") then
							v:LoadCharacter()
					end

Did you get any errors? (30 chars)

Try changing this to if v.TeamColor, because right now you are checking the TeamColor of the service, not the actual player.

2 Likes

tried this out and sure enough, it worked! Thanks!