How would I connect two actors, I just spawned, together with constraints?

I want to spawn an actor then attach it to another one with constraints how would I do that? I get the actor I am looking at then the actor i just spawned.

I want something like this Vroomist - Gameplay (PC HD) - YouTube