What are the "Superclasses"

So, I may be using the word (or term) “superclasses” wrong, but if so, I am wondering about the ancestor of a Class, so like for example:

Instance
BasePart: ^ Instance?
Part, Cylinder, Wedge, CornerWedge, Ball: ^BasePart

Again. I could be wrong here.

But Basically Something like this,
But I’m am mainly wondering about classes like:

  • BasePart
    Refers to ALL Parts
  • BaseScript
    Refers to ALL Scripts (After testing a bit, not with ModuleScripts)

Are there anymore classes like that? If so what are they?

(sorry if I repeat things, I’m not sure how to say this, or what they are called)

Base classes are kinda like templates of properties and methods which are used to create the regular classes that share them, for example Part and MeshPart both share stuff like Position or Size but MeshPart also has MeshId.
It’s done so that they don’t need to copy/paste the same functions into a bunch of different classes.

I don’t think there’s a list of just base classes, but you can generally see the inherited classes of something under its properties on devhub like so:
image

Alternatively this site might make it easier to browse base classes: Roblox API Reference

2 Likes

bbbb
Maybe these are all of them if they all start with the word “Base”… but I have no idea what BaseWrap is

2 Likes

Not all start with “Base”, see LuaSourceContainer or GuiObject for example.

I did make sure to look at Documentation and API Reference, But its still Difficult to find a specific one as there are Hundreds (potentially thousands) of Classes.

(I missed the Search Button, I’m that dumb.)

I don’t think you’ll find anything better than the site I linked, it lists the inheritance tree on the side in a nice way
This is parts & models for example

Ah my bad, didn’t notice your edit

But yeah, I’m apparently stupid so yeah,

Thanks for the Help!
Very Appreciated.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.