VINDICTA.TOP
Scripts · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

getsenv

Returns the global environment table of a specific Script instance.

function getsenv(scriptscriptScript | LocalScriptThe script whose environment to retrieve.: Script | LocalScript): tabletableThe script's global environment table.

Usage

Read a game script global
local env = getsenv(game.Players.LocalPlayer.PlayerScripts.SomeScript)
print(env.someGlobalVariable)