> ## 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.

# getbspval

Reads a BinaryString property value from a Roblox instance.

```luau theme={null}
getbspval(instance: Instance, property: string, base64: boolean): string
```

## Parameters

| Parameter  | Type       | Description                                                |
| ---------- | ---------- | ---------------------------------------------------------- |
| `instance` | `Instance` | The target Instance.                                       |
| `property` | `string`   | The BinaryString property name (e.g. `'SmoothGrid'`).      |
| `base64`   | `boolean`  | Whether the returned data string should be Base64-encoded. |

## Returns

`string` - The BinaryString value data.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  local val = getbspval(workspace.Terrain, "SmoothGrid", true)
  print("SmoothGrid data: ", val)
  ```

  ```luau Example 2 theme={null}
  local physics = getbspval(partOperation, "PhysicsData", false)
  ```
</CodeGroup>

<Tip>
  Used for reading unreadable BinaryString properties like Terrain.SmoothGrid.
</Tip>
