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

NameTypeDefaultDescription
Fieldsread-only textProperties window onlyThe class's fields, each with a name, a type and a default.
Methodsread-only textProperties window onlyThe class's methods as Luau text, one method per box.

Node

PositionVector2Properties window onlyWhere the class's card sits in the NodeLayout it lives in.
From ModuleScript 1
From LuaSourceContainer 1
From Instance 22