Why is my variable a read-only variable?

It looks like you have the wrong type, texture instead of text?