How do I assign a renderer to a game object?

I’m trying to control visibility of a game object with the following script…

var Arch = GameObject.FindWithTag("Architectural");
Arch.renderer.enabled = false;

But i’m getting the error 'There is no renderer attached to (my game object)…". How do I attach one? Thanks.

Try this

Arch.GetComponent(“MeshRenderer”).enabled = false;