Filesystemloadfile
Filesystem

loadfile

Compiles a file into a function running in the global environment.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function loadfile<A...>(path: string): ((A...) -> any | nil, string?)