How do I check the size of a Part?

So I tried to search this question but can’t find anything. Here is my code:
image

So the size of the part is 4, 1, 2 and I want to check if that is true by writing a code. How do I fix the code in the picture shown above?

1 Like

Put “local” before “Part” since you are referencing a variable.
Change size to “Size”

1 Like

I just capitalized it and it still shows an error.

image image

I did that and this is the error btw

yep

image image

Instead of Vector3, do Vector3.new(your size here)

4 Likes

OH it works now when I put .new after Vector, thanks a lot!

(I thought that you only use .new when changing the size not checking it but now I know!)

1 Like