How is your scene tree set up? This script extends a RigidBody but has another body as a child? Where does the click signal come from? Can you screenshot your scene tree for us?
Your if InputEventMouseButton: should be check if the event is that type