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

# Script Functions

## \<table> getsenv(\<LocalScript/ModuleScript> scr)

Returns scr enviorment.

## \<LocalScript/ModuleScript> getcallingscript(\<void>)

Returns the script that is calling the function.

## \<function> getscriptclosure(\<LocalScript/ModuleScript> scr)

{% hint style="danger" %}
This is not the original function and will not have upvalues or environment correctly defined.&#x20;
{% endhint %}

Gets scr bytecode & then creates an LClosure.&#x20;

## \<string> getscripthash(\<LocalScript/ModuleScript> scr)

Returns a SHA384 hash of scr encrypted bytecode.

## \<string> getscriptbytecode(\<LocalScript/ModuleScript> scr)

{% hint style="info" %}
It returns Luau bytecode.
{% endhint %}

Gets scr bytecode, decrypts it and then returns it.&#x20;

## \<void> unlock\_module(\<ModuleScript> obj)

Unlocks obj.

## \<void> lock\_module(\<ModuleScript> obj)

Locks obj.
