Script environment
All custom global variables available in the script environment.
Global variables
const Instance script
const Instance scriptconst string _VERSION
const string _VERSIONprint(_VERSION) -- output: Luauconst Player owner
const Player owner-- the owner of this script is Players.RazvanJTL
print(owner.Name) -- output: RazvanJTL
print(owner.Character) -- output: player's characterGlobal functions
const function require(module: number | ModuleScript, silenced: boolean?): any
const function require(module: number | ModuleScript, silenced: boolean?): any const function NewScript(source: string, parent: Instance?): Script
const function NewScript(source: string, parent: Instance?): Scriptconst function NewLocalScript(source: string, parent: Instance?): LocalScript
const function NewLocalScript(source: string, parent: Instance?): LocalScriptconst function NewModuleScript(source: string): () -> any
const function NewModuleScript(source: string): () -> any const @deprecated function LoadLibrary(library: "RbxGui" | "RbxStamper" | "RbxUtility"): any
const @deprecated function LoadLibrary(library: "RbxGui" | "RbxStamper" | "RbxUtility"): any const function print(...: any)
const function print(...: any) const function warn(...: any)
const function warn(...: any) const function error(exception: string, level: number)
const function error(exception: string, level: number)Last updated