getbspval
Reads a hidden BinaryString property, optionally Base64-encoded.
Syntax
getbspval(instance: Instance, property: string, encode?: boolean) -> any
Parameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | Instance containing the hidden BinaryString property. |
property | string | Name of the BinaryString property. |
encode? | boolean | When true, returns the value Base64-encoded. |
Returns
| Type | Description |
|---|---|
any | The raw BinaryString value, or its Base64 representation. |
Description
getbspval reads a hidden BinaryString property through the reflection layer, temporarily relaxing the property flags while the value is read.
Pass true as the third argument to receive a Base64 string instead of the raw bytes.
Example
local value = getbspval(workspace.Baseplate, "PhysicalConfigData", true)
print(type(value))
Notes
- Reflection reads live property metadata; hidden-property writes can desynchronise client state.
- The property must exist and contain BinaryString data.