Scriptsgetsenv
Scripts

getsenv

Retrieves an active script global environment.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function getsenv(script: BaseScript | ModuleScript): { [any]: any } | nil

Returns

The environment table or nil.