Skip to main content
Reads a workspace file, compiles its contents with the Luau compiler, and returns the loaded Luau function without executing it.

Syntax

Aliases

  • loadfileasync
  • dofile
  • dofileasync

Arguments

Returns

Example

Load a workspace Luau file as a function, then call it yourself.