plr.TeamColor = b:FindFirstChildWhichIsA("SpawnLocation").TeamColor
It doesn’t give any errors and it doesn’t work.
plr.TeamColor = b:FindFirstChildWhichIsA("SpawnLocation").TeamColor
It doesn’t give any errors and it doesn’t work.
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.
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
Are you trying to set the player’s team when they walk on it?