I need to link objects together

I’m trying to make a matching game and I want an object to be connected to other objects with a rope. For example, when I hold down the mouse on the orange box and drag it to the other orange box, it is tied with a rope.
Ekran görüntüsü 2023-10-16 230814

These documentations should help: