如何将零件的“大小”值存储到变量中?

我正在尝试搞清楚如何将零件的大小存储到变量中。

这是我的脚本:

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)
点赞
用户2858170
用户2858170

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

script.Parent.Size = Vector3.new(1, 2, 3)
2019-10-26 18:53:20