Entity component system (ECS)
A way to structure a simulation where entities are plain ids, components are data attached to them, and systems update every entity that has a given set of components.
Think of it as A spreadsheet with one row per thing and one column per kind of data, where each system works down the columns it cares about.
ECS keeps data packed by component, so systems that run every frame over thousands of entities stay fast, and new combinations of state need no new classes. jecs and Matter are Luau ECS libraries. CollectionService tags are a lighter version of the same idea: the tag marks the component, and a script that handles every tagged instance is the system.
Official reference: github.com