Compare transform.localscale

Hello,
I’ll make this short and clear. Im trying to destroy a gameobject if its scale is less then 0,0,0. This is my script so far :

var player : Transform;
var hit : RaycastHit;
var forward = player.TransformDirection(Vector3.forward);
	
	if(Physics.Raycast(player.position, forward, hit))
	{
		if(hit.collider.gameObject.tag == "thingy")
		{
			hit.collider.transform.localScale -= Vector3(10, 10 ,10) * Time.deltaTime;
			if(hit.collider.transform.localScale < Vector3(0, 0, 0))
			{
				Destroy (hit.collider.gameObject);
			}
		}
	}

It’s giving me this error :

BCE0051: Operator ‘<’ cannot be used with a left hand side of type ‘UnityEngine.Vector3’ and a right hand side of type ‘UnityEngine.Vector3’.

Fixed it. I swapped this line :

if(hit.collider.transform.localScale < Vector3(0, 0, 0))

With this one :

if(hit.collider.transform.localScale.z < 0 && hit.collider.transform.localScale.y <0 && hit.collider.transform.localScale.x < 0)