# How to move several components with a loop

**URL:** <https://forums.unrealengine.com/t/how-to-move-several-components-with-a-loop/1256902>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 10, 2023, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-move-several-components-with-a-loop/1256902 "2023-08-10T15:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javad\_Rezaii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/javad_rezaii/32/948244_2.png) [@Javad\_Rezaii](https://forums.unrealengine.com/u/Javad_Rezaii)\
**Post date:** [August 10, 2023, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-move-several-components-with-a-loop/1256902/1 "2023-08-10T15:40:52Z")

</div>

Hi guys, I have several static mesh components inside my blueprint.  
I want to move them all using a loop.  
But I can NOT do it with MoveComponentTo node, since it is not working with loops.  
I have tried to create a custom MoveComponentTo node using a Macro

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/3/ff37b69c1b181938c4d6139da6be2af3c8e1e1e1.png)  
But it has a problem since I can not give him a local variable to stop the tick on time. (TimePassed variable is NOT a local variable in the image.)  
I can NOT use a function either because I have a delay in my Macro.  
What shoud I do now!?

---

<div class="post-metadata">

**Author:** ![Dr\_Loveless](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dr_loveless/32/735613_2.png) [@Dr\_Loveless](https://forums.unrealengine.com/u/Dr_Loveless)\
**Post date:** [August 10, 2023, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-move-several-components-with-a-loop/1256902/2 "2023-08-10T15:46:16Z")

</div>

USE SET WORLD LOCATION
