---
title: "getcallbackvalue"
description: "Retrieves a callback from tracked registry state or native callback metadata."
---

```lua
getcallbackvalue(instance: Instance, member: string): function?
```

---

## Aliases

- `getcallbackmember`

---

## Arguments

<ParamField body="instance" type="Instance" required>
  The Roblox Instance to operate on.
</ParamField>

<ParamField body="member" type="string" required>
  The case-sensitive callback member name, such as OnInvoke.
</ParamField>

---

## Returns

<ResponseField name="callback" type="function?">
  The resolved callback function, or nil if it cannot be found.
</ResponseField>

Can return nil when a callback cannot be resolved; member names are case-sensitive.

**Related types:** [Instances types & behavior](/reference/instances/types).

---

## Example

```lua
local bindable = Instance.new("BindableFunction")
bindable.OnInvoke = function() return "hello" end
local callback = getcallbackvalue(bindable, "OnInvoke")
if type(callback) == "function" then print(callback()) end
bindable:Destroy()
```
