--// Event Connections

L_14_.OnClientEvent:connect(function(L_22_arg1)
	if L_22_arg1.TeamColor == L_1_.TeamColor and L_22_arg1.Character and L_22_arg1.Character:FindFirstChild('Head') then
		if L_22_arg1.Character:WaitForChild("Saude"):WaitForChild("FireTeam").SquadName.Value ~= '' then
			spawnTag(L_22_arg1.Character, L_22_arg1.Character:WaitForChild("Saude"):WaitForChild("FireTeam").SquadColor.Value)
		else
			spawnTag(L_22_arg1.Character, Color3.fromRGB(255,255,255))
		end
	end;
	
	if L_22_arg1.TeamColor ~= L_1_.TeamColor then
		if L_22_arg1.Character and L_22_arg1.Character:FindFirstChild('Head') and L_22_arg1.Character:FindFirstChild('Head'):FindFirstChild('TeamTag') then
			L_22_arg1.Character:FindFirstChild('Head').TeamTag:Destroy()
		end
	end;
end)
