error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer

having trouble fixing this error :frowning: creating a timmer that counts down…

// Use this for initialization
	void Start () {
		PhotonNetwork.ConnectUsingSettings(VERSION);   //Connect to Photon Network for EAO.
	}
	void Upate(){
		Timer.GetComponent<Text> () = Countdown * counting * Time.deltaTime;
	}

In this line…

Timer.GetComponent<Text> () = Countdown * counting * Time.deltaTime;

You’re trying to assign a value to the result of the GetComponent call. GetComonent is a method so you can’t assign something to it. That method is returning a Text component. You can assign something to the properties of that component, which is what you want to do.

If you look up the