Prefab has network identity component
when player dies this code is called
GameObject body = (GameObject)Instantiate (DeathObject);
body.transform.position = new Vector3 (this.transform.position.x,this.transform.position.y,0.01f);
NetworkServer.Spawn (body);
prefab is also added to registered spawnable prefabs.
where am i going wrong here it still only spawns clientside