So I have learned frame and the uses are mainly to change position or orientation. But what I don't know is how to change the different sizes of a model via scripting.
I tried this script I found written by someone else
local scaleFactor = 1.01
local scaleFactor2 = 0.01
while scaleFactor2 < 1 do
print(scaleFactor2)
wait(0)
for i , part in pairs(model:GetDescendants()) do
if part:IsA("BasePart") then
local partPos = part.Position
local offset = partPos - dilationCentre
offset = offset * scaleFactor
part.Position = dilationCentre + offset
part.Size = part.Size * scaleFactor
end
end
scaleFactor2 = scaleFactor2 + 0.01
end
It worked but it was hard to accurately change the size to a special vector3 size. Is there a way I can change a model to a vector3 value via script?

1 comment
I am pretty sure there is a way if this is what you're talking about. Here is a post that talks about it: https://devforum.roblox.com/t/is-this-the-best-way-to-scale-a-model/166021