[CLOSED]Cant Spawn a Camera with GameObject

Hello, Im trying to create an FPS game and am still new to Java. Currently i have a cube which spawns in a Network and works on LAN. The problem is that I cant spawn a Camera to be attached to the Cube/player. Everytime i try a code it would either spawn it at 0,0,0 or not spawn at all. I was wondering if anyone could help me with a bit of the coding or commands to get a Camera spawn in with the gameObject and be able to move independently if in a network. Below i have the code with the important parts.

var playerPrefab:GameObject;
var spawnObject:Transform;
var gameName:String = "TBD";
var ServerList:String = "Server List";
var fontSize: int;
var tempObj:GameObject;

function spawnPlayer(){
	Network.Instantiate(playerPrefab, spawnObject.position, Quaternion.identity, 0);
//      cam = gameObject.AddComponent(Camera);
//	cam.GetComponent(SmoothFollow).playerPrefab = playerPrefab;
//	tempObj.GetComponent(SmoothFollow).playerPrefab = playerPrefab;
}


//messages
function OnServerInitialized(){
	Debug.Log("Server Initialized");
	spawnPlayer();

}

function OnConnectedToServer(){
	spawnPlayer();

}

Why dont you just have a empty prefab put the player there and add a camera game object with the smoothfollow already preset on the player. Then access the camera from there