loadfile Synchronous
loadfileasync
Returns a compiled chunk; filesystem failures raise.
Luau
loadfile(path: string) -> (Function) OR (nil, error: string)Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
(Function) OR (nil, error: string)loadfileasyncReturns a compiled chunk; filesystem failures raise.
loadfile(path: string) -> (Function) OR (nil, error: string)| Parameter | Type |
|---|---|
path | string |
(Function) OR (nil, error: string)