:error CS1061: Type ' Text' does not contain a definition for 'text'

Pretty simply, It doesn’t recognize the word ‘text’ at the bottom of the script and I can’t resolve the issue no matter what. Plz Help!

using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class TestBoxManager : MonoBehaviour {

	public GameObject textBox;
	public Text theText;

	public TextAsset textFile;
	public string[] textLines;

	public int currentLine;
	public int endAtLine;


	public CharacterController player;


	void Start () {
		player = FindObjectOfType<CharacterController> ();

		if (textFile != null) {
			textLines = (textFile.text.Split ('

'));
}

		if (endAtLine == 0) {
			endAtLine = textLines.Length - 1;
		}

	}

	void Update() {
	
		theText.text = textLines [currentLine]; // <--- ERROR ON THIS LINE
	}
}

YES! I figured out the issue! Both of you guys were right! I had a script titled ‘ScreenText’ which I always passed over because I was only looking for a script with just the word ‘Text’. I am extremely excited now as this issue has been holding me back for almost two weeks. Now I can get back to work! Thanks :slight_smile: