GetComponent of Camera? C# Type Unityengine.Target error

Okay. My Netcode when it spawns a player has to change the cameras “Smooth Follow” scripts target to the players object. Note. The smooth follow is written in JS but my netcode is in c#. I have tried a few examples and failed. The camera is called Camera. Any advice?

Heres what im trying:

		GameObject objectwithscript;
		Component followscript;
		objectwithscript = GameObject.Find ("Camera");
		followscript = objectwithscript.GetComponent ("Smooth Follow");
		followscript.Target = Localhostplayer;

Move your “Smooth Follow” script into ‘Standard Assets’.

If your calling GetComponent of a js script from c# you need to either have the js script in a Plugins directory so its compiled first or use GetComponent(“SmoothFollow”) .