Adding velocity to ball

Options
So I cannot make the ball move after i spawn it. Can someone help me?
I'm spawning it using:
GameObject Ball = (GameObject)PhotonNetwork.Instantiate("Ball", Vector3.forward, Center.transform.rotation, 0);

Answers

  • make sure the ball has a rigid body

    in move script
    ball.GetComponent().AddForce()
    or
    ball.GetComponent().velocity = new Vector3(0, 10, 0);



    just make sure your photon view is observing the transform