getspecialinfo Synchronous

Gather class-specific reflected fields from Terrain, MeshPart, or PartOperation in one table. It helps inspect data that ordinary property enumeration may omit.

Syntax
Luau
getspecialinfo(instance: Terrain | MeshPart | PartOperation) -> {[string]: any}

Parameters

Function parameters
ParameterTypeDescription
instanceTerrain | MeshPart | PartOperationTerrain, MeshPart, or PartOperation to inspect.

Returns

{[string]: any}

A table of fields that could be read for that class. Unavailable fields are omitted.

Usage notes

Terrain checks SmoothGrid and MaterialColors; MeshPart checks PhysicsData and InitialSize; PartOperation checks several geometry fields. The class name must match exactly, so other classes raise an error, including PartOperation subclasses such as UnionOperation.

If a field is a NetAssetRef, its value is a serialized binary string beginning with type and version bytes. Treat it as a complete asset stream, not plain mesh bytes.

Example

Example
Luau
local info = getspecialinfo(workspace.Terrain)
for name, value in pairs(info) do
    print(name, typeof(value))
end