No, i am sure. When i click on to the script button next to node “Element” the script “Element” shows up. And just tried this, when i change the type of the node it doesn’t give that error but breaks the whole code.
It gave errors in the freeze toggling section an some things like that but i cant recreate the error now it just says Script inherits from native type “RigidBody2d”, so it can’t be assigned to an object of type: “Node2d” but the node is an “RigidBody2d
I have solved it. The script “Element” was used by both the scene “Element”(is rigidbody2d) and the scene “Main”(is node2d) and that coused it. I just made the script “Element” only used by the scene “Element”. That solved it.