Ball is not Moving in a ball and roll example

Hello all

I have been trying to tr the first tutorial example in unity which is roll a ball. The problem that I am facing that ball is not moving even after changing the speed parameter to a non-zero value (as this was the main reason for many cases I read about). I attached the code and the input manager toolbar.

Can someone give me a hit on this please?

You should change

if (rb = null)

to

if (rb == null)

because the first one sets rb to null, and the second checks if it is null. Also, you should probably move this checking part above your moving code, or put that code in the else section of your check, since you don’t want to access rb if it is null.

Thank you @wornTunic · for your reply. I changed that line of code but nothing happened. I even tried to move the ball before adding this line but the ball did not move. any other tips please?