The node system of Godot is basically complete OOP. Therefore, each node/script is considered an object, while scenes are collections of objects. You can make virtual scripts/ or children designed to be parents ealily by paying attention to the the first line with print. The one that starts with 'extends'
To make a virtual script you create a script extending the node of your choice and adding your code. For this example I'll use RigidBody2D we will call it myrigidbodies.gd:
add the rest of the code you would want every node that will use this
script as a parent to have
Then, in the node you want to use the code you extended you would use the following:
add more code specific to the individual here