It looks like you're new here. If you want to get involved, click one of these buttons!
please help me
Rigidbody needs to be inside the class. Right now it is above the curly brackets that contain the class. It does not need to be in a function such as start or update however.
put the 'public Rigidbody rb;' below the curly bracket on line 7 instead on top of it.