Basically you’d do a line trace from your cursor (probably on a key press), spawn the actor at the hit location of the line trace, save the actor you spawned into an actor variable, do a line trace every tick to get the new cursor position, update the position of your building with the new cursor position and finally when you left click you’d stop updating the position, stop doing line traces and remove it from the variable you assigned earlier.