How to move multiple parts at once

Hello there! I am currently trying to make a boss fight sort of game and ran into an issue. You see, I would like to move multiple objects (Or obstacles in my case) at once. Here are some pictures of what I need to be accomplished…

Here is the code, it is a local script under a Text Button that when you click the text button, it moves a part.
image

Here is the obstacle that is being moved and the sort of track the obstacle runs down. I would like there to be multiple obstacles that move at the same time.
image

If there is anything else I need to clarify just let me know, thank you for your time and have a great day!

1 Like
local Parent = nil; -- Change this to the children's parents.

for i,v in pairs(Parent:GetChildren()) do
   -- V is the variable for all children, for example;
   v.Transparency = 1;
   -- ^^Would turn all the children transparent.
end
1 Like

You could weld them all to a “root” part then update the roots cframe. (this is how the roblox character works but instead of welds its motor6ds)

5 Likes