> ## Documentation Index
> Fetch the complete documentation index at: https://eco-804c21df.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment Functions

> Functions related to environment.

### Get Global Environment

```lua theme={null}
getgenv() : {GlobalExecutorEnvironment} <table>
```

<Info>
  getgenv
</Info>

Returns a table containing the global executor environment.

### Get Roblox Environment

```lua theme={null}
getrenv() : {GlobalRobloxEnvironment} <table>
```

<Info>
  getrenv
</Info>

Returns a table containing the global roblox environment.

### Get Script Environment

```lua theme={null}
getsenv(Script: LocalScript) : {ScriptEnvironment} <table>
```

<Info>
  getsenv
</Info>

Returns a table containing the script environment.
