Load a GameObject that is outside of script and set it active at the same time

Hi, I am trying to make it so that when the player dies, text (which is disabled up to their death) saying that they died is enabled. While I know how to access GameObjects in scripts, and I know how to set them active, I don’t know how I can do both of these at the same time. No matter what syntax I use, it always returns some error. Would anyone mind helping me out? Thanks!

If you know how to access GameObjects in scripts,
then all you have to do is set the .enabled to true?
What? Your explanation is confusing.

public GameObject yourobject; //set this in the inspector

yourobject.enabled = true;