Constraining Box Movement to Object Using Line Trace

Hello hello. I am a rising UE4 Blueprintee and have a basic understanding of how things within the engine works. I have uploaded a video showing my current work progress,( ) and i am having complications. I am trying to make the box move in a direction through WASD key press and have it travel down the y-axis using the tick function. I then am trying to have the box only be able to move within the confines of my larger object (trailer) space. I used a line trace to try and have it move based off whether the cast hit the trailer or now prior to moving. But it has no effect. Help is greatly needed in my understanding of why and how to fix this.