inputting signals not working

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

if event is InputEventMouseButton:

make sure to format code pastes properly