If I had a Rhyperior with lightning rod and I got hit an electric attack, would my special attack be raised or does the electric immunity from the ground typing activate first and not give me the special attack raise?
Immunity activates first, then ability.
The only way for Rhyperior to get the absolutely useless special attack boost is for it to hold a Ring Target.
Bulba - Lightning Rod