I have 4 parts that I want to each 'tween' their sizes every "X" amount of seconds.
This script tries doing so but I know I'm missing something. Instead this only gets one part in a Folder and only resizes that Part, then it moves on to the next Part:
local boundaryFolder = game.Workspace.Bounds
function increaseBoundaryRadius()
local amount = 5
for i, v in pairs(boundaryFolder:GetChildren()) do
if v.Name == "boundPart" then
for j = 0, 5, 1 do
wait(1)
--this is where the parts should be increased every 1 second by adding 5 to their sizes
v.Size = v.Size + Vector3.new(0, 0, amount)
end
end
end
end
while wait(7) do -- this is "X" amount of seconds
print("Starting")
increaseBoundaryRadius()
end

1 comment
Quick glance suggestion is to switch the for loops. Have the part loop nested inside the "tween" loop.