Check if parts are under a specific size

I have a for loop going through workspace’s descendants, and I would like to check if the part’s size is smaller than 1 stud on all 3 axes, although I’m not sure how to achieve that.
I’ve tried checking using Vector3.new() however I do not seem to be able to check if a Vector3 is less than 1.
After that I tried to make a table full of the sizes to scan, however that would be impossible to make as parts with an imperfect size (e.g. 0.5832) would not be scanned by the loop.

Thus, I am here asking for help.

if part.Size.X < 1 and part.Size.Y < 1 and part.Size.Z < 1 then
    -- code
end

?

2 Likes

Thank you! Not sure how I didn’t think of that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.