Moving structure in the same direction when inside an area

Godot Version



I would like to know how to make an object move in the same direction constantly in 3D while the hitbox of the player is inside an area and make it stop (preferably slowly) when the player steps off the area, for example if my hitbox collides with the area of activation, the whole structure would move right, thanks