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. Other classes raise an error.

Example

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