Error after Writting the Script for Control Movement!

Please use code tags .

The tutorial is written for an older version of Unity. Try adding this line to the top of your FixedUpdate function:

Rigidbody rigidbody = GetComponent<Rigidbody>();

1 Like