AcediaDocumentation

dofile

Compiles and executes a workspace Luau file.

Forwards all values returned by the chunk.

dofile(path: string): ...any

Parameters

ParameterTypeDescription
pathstringPath relative to the Acedia workspace.

Errors: A missing file or compilation failure raises the loadfile error; an error raised by the chunk is raised again with the chunk's own message.

Aliases: runfile.

On this page