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
As far as I'm concerned, this should work.
You forgot the closing parenthesis for your pairs()
for _,v in pairs(workspace.Model:GetChildren()) do
On line 1, you need an extra ")" after the "()"
Correct:
for _,v in pairs(workspace.Model:GetChildren()) do