What does the console mean when it says I need to attach a renderer?

I have been using the script " transform.GetComponent().enabled = true/false. Everything is fine however the console says you need to attach a renderer. Is there a renderer component that I need to attach to the object or is their another script. Thank you!

Its ok guys. It works now. Thank you though.