Camera follow terrain / tilt by slopes

Hi all, I want to make the camera tilt by slopes and I’ve followed the tutorial from DEGamDev on YouTube, but After I finished the result doesn’t fit with what I want, so someone can help me?