local Players = game:GetService("Players") local Teams = game:GetService("Teams") local coral, cyan = Teams:WaitForChild("Coral"), Teams:WaitForChild("Cyan") local function assign(player) local team = #coral:GetPlayers() <= #cyan:GetPlayers() and coral or cyan player.Team, player.Neutral = team, false for _, spawn in workspace:GetDescendants() do if spawn:IsA("SpawnLocation") and not spawn.Neutral and spawn.TeamColor == team.TeamColor then player.RespawnLocation = spawn break end end end Players.PlayerAdded:Connect(assign) for _, player in Players:GetPlayers() do assign(player) end