so pretty much rename class to class_name and remove the colon :
You’ll pretty much have to unident everything following that, the syntax you’re using only works for inner/subclasses.
You get the error because the engine thinks you’re defining a subclass within this script. So it is automatically falling back on refcounted as the base class for the script. So it thinks its something like: