Changing player's team color doesn't work

plr.TeamColor = b:FindFirstChildWhichIsA("SpawnLocation").TeamColor

It doesn’t give any errors and it doesn’t work.

1 Like

I’d suggest setting the player to the actual team.

local teams = game:GetService("Teams")
player.Team = teams.YourTeamHere

Any form of FindFirstChild() should only be used when you are unsure whether an object exists.

1 Like

I know but now I have to make function to find team by color. Cuz I only get the color of the team from the spawnLocation

1 Like

Are you trying to set the player’s team when they walk on it?

1 Like