ClassNode
Design a typed class right on the node canvas: list its fields, write its methods on the card, and require it from any script.
A ClassNode is a ModuleScript drawn as a card in a NodeLayout. Its name is the class name, its Fields list Name : Type = default, and each method is Luau typed into its own box on the card. It builds a --!strict module with an exported type and a typed new(init) that fills the defaults, so require it like any module to get the class and its type. Add it from Add > Advanced > Class node.
Properties
Class
| Name | Type | Default | Description |
|---|---|---|---|
| Fields | read-only text | Properties window only | The class's fields, each with a name, a type and a default. |
| Methods | read-only text | Properties window only | The class's methods as Luau text, one method per box. |
Node
| Position | Vector2 | Properties window only | Where the class's card sits in the NodeLayout it lives in. |
