If function not working properly.

I made a script to place boxes from a base, but the if function is not being activated.
I don’t know why it isn’t.
The Script Piece in question-
if (RoundHit.x < FoundObject.x)
RoundHitFin = new Vector3(RoundHit.x - 1, RoundHit.y, RoundHit.z);

This is difficult to troubleshoot without seeing the rest of your code.

To help find the problem, add this line immediately before the if statement:
Debug.Log("RoundHit.x is " + RoundHit.x.ToString() + ". FoundObject.x is " + FoundObject.x.ToString());