> ## 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.

# Script Functions

> Functions related to Script

### Get Script Hash

```lua theme={null}
getscripthash(Script: BaseScript) : ScriptHash <string>
```

<Info>
  getscripthash, get\_script\_hash
</Info>

Returns the `Script`'s hash.

### Get Scripts

```lua theme={null}
getscripts() : {LuaSourceContainer} <table>
```

<Info>
  getscripts, get\_scripts
</Info>

Returns a table containing all scripts in the game.

### Get Modules

```lua theme={null}
getmodules() : {ModuleScript} <table>
```

<Info>
  getmodules, get\_modules
</Info>

Returns a table containing all module scripts in the game.

### Get Loaded Modules

```lua theme={null}
getloadedmodules() : {LoadedModules} <table>
```

<Info>
  getloadedmodules, get\_loaded\_modules
</Info>

Returns a table containing loaded modules.

### Get Running Scripts

```lua theme={null}
getrunningscripts() : {BaseScript} <table>
```

<Info>
  getrunningscripts, get\_running\_scripts
</Info>

Returns a table containing running scripts.

## Lock Module

```lua theme={null}
lockmodule(Obj: ModuleScript) : () <void>
```

<Info>
  lockmodule
</Info>

<Warning>
  * **Fluxus** exclusive
  * Detectable (noticeable changes)
</Warning>

Locks the `Obj` so when the local scripts try to require it, it will return "**The module was locked**".

## Unlock Module

```lua theme={null}
unlockmodule(Obj: ModuleScript) : () <void>
```

<Info>
  unlockmodule
</Info>

<Warning>
  * **Fluxus** exclusive
  * Detectable (noticeable changes)
</Warning>

Unlocks the `Obj`, requiring it will return the original content.
