I believe what you're are referring to are lightning rods. At the end of the metal points is a wire that runs deep into the ground, and instead of the building being struck by lightning, the rods are. And the electric current is transferred harmlessly into the ground.