如何将部件的 "Size" 值存储在变量中?

How do I store a "Size" value of a part in a variable?

我想知道如何在变量中存储零件的尺寸。

这是我的脚本:

while wait() do 
    local Intval = game.ReplicatedStorage.SizeNumb.Value
    script.Parent.Size = Intval
end

我收到的输出是

Workspace.Part.Script:12: bad argument #3 to 'Size' (Vector3 expected, got number)

您需要像这样分配一个 Vector3 值:

script.Parent.Size = Vector3.new(1, 2, 3)