I tried the triangle formation of metal dino gates as per one of the top tips but that didn't work. What did work for me was a four wall box of stone behemoth gates and then kiting the rex into there with a flyer and then closing the rex inside. Make sure you placed the gate box near a high boulder so that you can land there and tranq the rex from above.

More Rex Taming & KO Tips