As far as I'm concerned, this should work:
for _,v in pairs(workspace.Model:GetChildren() do
if v.Name~="Part21" then
v.Size=v.Size+Vector3.new(17,0,-17)
v.CFrame=CFrame.new(v.CFrame.p,
v.Parent['Part'..tostring(tonumber(string.sub(v.Name,5))+1)].CFrame.p)
end
end
- The Model is named Model, in the Workspace.
- The Model consists of Parts labeled in order as "Part1" to "Part21"
As far as I'm concerned, this should work.
