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;