> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getpcd

Reads physical collision data (PCD) representing the physics mesh of a Roblox instance.

```luau theme={null}
getpcd(instance: Instance, property: string): string
```

## Parameters

| Parameter  | Type       | Description                  |
| ---------- | ---------- | ---------------------------- |
| `instance` | `Instance` | The target Instance.         |
| `property` | `string`   | The collision property name. |

## Returns

`string` - The collision data string.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  local collData = getpcd(workspace.UnionPart, "PhysicsData")
  print(#collData)
  ```

  ```luau Example 2 theme={null}
  local meshData = getpcd(meshPart, "CollisionData")
  ```
</CodeGroup>

<Tip>
  Useful for generating custom geometry calculations.
</Tip>
