How to get a Script to Use the Text its Assigned to

Hi! I’ve been using
Text text;
text = FindObjectOfType();
text.text = “”; to get my script to use a text object, but now that I have multiple scripts and text objects, the text of one script is often going where I want the text of another script to go. How do I get the script I assign to a text object to only use THAT text object?

Wait! I think the issue is that its a disabled canvas. I made my Text text public and assigned it to the correct text in the scene, but in the game it automatically chose a text that was not on the disabled canvas (I use the disabled canvas as a popup screen for when the player presses i for inventory). How can I get the script to assign itself to the right text at runtime?