> For the complete documentation index, see [llms.txt](https://duckys-playground.gitbook.io/wave/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://duckys-playground.gitbook.io/wave/functions/reflection.md).

# Reflection

### Check Caller

{% code lineNumbers="true" %}

```typescript
<bool> checkcaller(<void>)  
```

{% endcode %}

* Returns `true` if the current thread was created by Wave.

***

### Get Hidden Property

{% code lineNumbers="true" %}

```typescript
<variant> gethiddenproperty(<Instance> Object, <string> Property)
```

{% endcode %}

* Returns the `value` of the property that cannot be accessed through Lua.

***

### Is Executor Closure <a href="#is-executor-closure" id="is-executor-closure"></a>

```typescript
<bool> isexecutorclosure(<function> a1)
```

* Returns `true` if `a1` was created by Wave.

> Alternative: `isourclosure`, `is_our_closure`, `is_executor_closure`, `checkclosure`

***

### Is C Closure

{% code lineNumbers="true" %}

```typescript
<bool> iscclosure(<function fn>)
```

{% endcode %}

* Returns true if `fn` is a C closure (a function implemented in C, not Lua).

> Alternative: `is_c_closure`

***

### Is Line Info

{% code lineNumbers="true" %}

```typescript
<bool> islineinfo(<function fn>)
```

{% endcode %}

* Checks if `fn` contains Lua line information (debug metadata such as source file and line numbers).

***

### Is Lua Closure

{% code lineNumbers="true" %}

```typescript
<bool> islclosure(<function> a1)
```

{% endcode %}

* Returns `true` if `a1` is an L closure.

> Alternative: `is_l_closure`

***

### Loadstring

{% code lineNumbers="true" %}

```typescript
<function> loadstring(<string> chunk, <string?> chunkName)
```

{% endcode %}

* Loads `chunk` as a Lua function with optional `chunkName` and returns it.

***

### Set Hidden Property

{% code lineNumbers="true" %}

```typescript
<void> sethiddenproperty(<Instance> Object, <string> Property, <variant> Value)
```

{% endcode %}

* Sets the given property to new `value`.

***

### Set Scriptable

{% code lineNumbers="true" %}

```typescript
<void> setscriptable(<Instance> Object, <string> Property, <bool> toggle)
```

{% endcode %}

* Sets the property's scriptable state to `toggle`.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://duckys-playground.gitbook.io/wave/functions/reflection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
