Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to resize a model using Lua?

I need to know how to do this to be able to grow models in-game with a script.

2 comments

0

vector3

0

like, how to grow the whole thing at once?

2 answers

In roblox api, we can loop through tables that are given to us. Using the for loops!

local Model = workspace.Model:GetChildren() --// this makes a table for us! Model is the table.
for i, v in pairs(Model) do
  v.Size = v.Size * 2
end

2 comments

0

:)

0

ill try it out in my tree growing script, ill accept if it works. I tried directly adding a Vector3 but ill try it out. Thx!

Use a for i, v in parirs loop and go thought all the children of the model you want to resize, and make them bigger.

This discussion is preserved as it was. New answers, comments, and votes are closed.