Expected ";" when assigning variable.
var power : float = 500.0; function Start () {
rigidbody.AddForce(Vector3(0,0,power));
}
This is all the code I am using at the moment. In the "var power : float = 500.0;" statement it says that I should put a semicolon instead of a colon. What should I do because I did it and it didn't work.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612074621im_/https://answers.unity.com/themes/thub/images/avi.jpg)