SetMaterial not working

image


Why is this showing error if someone knows solution i would be grateful. Maybe it has something to do with external but I don’t really know what does it mean