With the new update, you need to use behemoth gates for the rex. Keep this in mind for pens/rex traps

More Rex Taming & KO Tips