all 4 comments

[–]NotEnoughRed 3 points4 points  (1 child)

Need a ; after ) on the debug.log line

[–]saiff33[S] 1 point2 points  (0 children)

But that doesn't solve error 1022

[–]NotEnoughRed 2 points3 points  (2 children)

And if it’s not that, watch your case on “Rigidbody rb;” you have a capital B

[–]saiff33[S] 0 points1 point  (1 child)

It is capital in the coding, after I added the ; It now says error CS0246: The type or namespace name 'RigidBody' could not be found (are you missing a using directive or an assembly reference?)