Skip to main content
Loads the stored bytecode for a supported Roblox script Instance and returns it as a Lua closure. Returns nil when usable bytecode is not available.

Syntax

Aliases

  • getscriptfunction

Arguments

Returns

Example

Load a function from a supported Roblox script Instance when bytecode is available.