i dont know what is the problem here can someone please help me?
Try using Rigidbody2D instead it seems to be saying you need Rigidbody2D to access the velocity variable which is contained within the Rigidbody, make sure they all have a capital “R” instead and it should work hopefully.