[ August- 4th week tip]
Understand API inheritance to structure your scripts
Overview
Donāt just skim a single classās methods or propertiesāstart with the inheritance tree. Most APIs are designed with parent ā child relationships where child classes inherit and expand on parent functionality.
For example, if a specific object (like a Part) inherits from Instance, it can use the base features from Instance (creation, initialization, shared properties, etc.) out of the box.
How to use?
Check the class hierarchy in the API Reference Review each classās parent/child structure first.
Youāll quickly see whether a function comes from a parent or is newly defined in a child.
Read parent-class features first When there are many child classes, the shared features in the parent are often the real core.
Once you understand the parentās properties and methods, the child-class docs become much easier to read.
Learn more:
You know where to find us for more questions or suggestions.
Happy building!