---
title: "ObjectValue"
description: "Stores a reference to another Instance."
canonical: "https://docs.glorpia.com/instances/objectvalue"
markdown: "https://docs.glorpia.com/instances/objectvalue.md"
---
# ObjectValue

Stores a reference to another Instance.

**Category:** Instances / ValueBase

## Inheritance

`ObjectValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`.

## Members

| Name | Type | Description |
| --- | --- | --- |
| `Value` | Instance or nil | The value stored by this instance. |
| `Changed` | signal | Fires when Value changes and passes the new value. |

## Example

```luau
local value = Instance.new("ObjectValue")
value.Name = "ExampleValue"
value.Value = workspace:FindFirstChild("Part")
value.Parent = workspace

value.Changed:Connect(function(newValue)
    print(newValue)
end)
```

## Referenced instances

`ObjectValue` stores the referenced Instance ID. If the target is unavailable on a client, reading `Value` returns `nil` until that Instance is present.

## Related

- [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes.
- [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference.
