//[Command]
void CreatePart()
{
GameObject Te = (GameObject)Instantiate(TestPart,transform.position,transform.rotation);
// You had "TestPart" here. You need to put "Te" because its actualy the object you are instantiating
NetworkServer.Spawn(Te);
}
↧