I need help with script
Godot 4.6.3
Question
i have an issue each time i do extends i can only do one thing node2D and i cant name it anything
Is theres way to name it something or is it not possible? because i have an issue from getting 2 nodes from using the same script
example: i want one node or characterbody2d ill use node2d in short i want it point at player
but extends only let me use node2d so what is this does node2d point at node2d it just doesnt make any sense is theres way to change it?
I can’t really tell what you are asking, can you please read your post again and try to make it clearer
naming codes is not important in godot , you can name it with everyting you want , but the name should be unique and wont be the same with another code.
maybe it is the answer , your qusetion is not clear 
thanks i guess i just realy wanted to know if you can do like extends player or such i just wanted yes or no but thanks for the response
you wanna extend a new class from your “player” script? is the class registered?
as per the docs, you gotta declare a class with:
class_name Player extends Node2D
...
...
# all the other stuff
and another script can extend it like:
class_name LeggedVehicle extends Player
...
...
If you just make a script and don’t register the class, you’ll have to use File-based script inheritance on the child class scripts instead.
Are you asking about not being able to extend a script with more than one class?
it’s design of godot - nodes or resources always have single class, and every script can only extend single class, if you want to use methods from other class, it have to be superclass (inheritance) of the class you’re extending, or have reference to a resource / node of such class as a variable