The Scripts library bridges the gap between Luau values and the game’s own code. It finds LocalScript, Script, and ModuleScript instances, reads their bytecode, compiles closures from them, and maps between a script and the thread running it. It also carries the thread-identity controls, since identity is what decides which of these reads are allowed.

Functions