> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nodi3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Function

> Function node: Create a callable function using Rhai scripting. Capture textures and parameters as IN[i]. Math › Script node in Nodi, with its inputs, outputs and properties.

Create a callable function using Rhai scripting. Capture textures and parameters as IN\[i].

**Category**: [Math](https://docs.nodi3d.com/nodi-editor/nodes.md#math) › Script

## Inputs

| Input | Type |
| - | - |
| IN\[0] | `Any` |

## Outputs

| Output | Type |
| - | - |
| function | `Function` |

## Properties

Properties are set in the Inspector and are used when the matching input is not connected.

| Property | Type |
| - | - |
| script | `String` |
| function name | `String` |

## Related nodes

Other nodes in Math › Script:

* [EvaluateFunction](https://docs.nodi3d.com/node/evaluate-function.md): Call a function with arguments. Supports Number, Vector, Point inputs.
* [Expression](https://docs.nodi3d.com/node/expression.md): Evaluate an expression using the Rhai scripting language.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.