you are likely extending a script from a KinematicBody, and attaching it to a RigidBody (or the opposite, cant really say).
When you attached a Script to a node, the script must extend the same node type.
But next time use english and provide more information