I was wondering how do I make the main camera shake with each step a t-rex dinosaur take.
Absolute ton of tutorials and scripts on shaking the camera- just use Google to find them (“Unity camera shake”). Trigger the effect by setting up an “event” in the T-Rex walking animation data (but this would apply to anything using the same animation), or add a StateMachineBehaviour to the animation set in the Animator, and trigger it from there. If you need help with the timing, just search for ways to make proper footfall sound effects- the logic is absolutely identical.
Cinemachine is also a really good bet if you’re using 2017.1+ since it has a ton of camera controls built in, camera shaking being one of them.