Why Does My RigidBody not Work?

Does anyone know why I am getting this error? I have a rigidbody attached but it says I don’t.

Sorry I am new to Unity, I followed a Brackey’s tutorial and am trying to make my own game now to get better.

Welcome to the forums. In future, please post your code as a script by clicking on the Code Sample button (ones and zeros) and paste it there.

The reason your project is failing is that you are using RigidBody in your script but you have a RigidBody2D on the Game Object. You should be using GetComponent<RigidBody2D>() in all cases.