How can I attach and detach a trailer to my truck

I have a truck with 4 wheels . I use vehicle movement class and now I want to attach and detach a trailer to my truck when I press a button and I don’t know how . Any ideea ?

watch this video Unreal Engine Trailer System Tutorial - YouTube