메인 콘텐츠로 건너뛰기

인수

string
필수
Luau source string to compile. Embedded null bytes after the first null are not preserved.
string
Optional chunk name used for error reporting. Defaults to ”@” when omitted or nil.

반환값

function | nil
Loaded function when compilation and loading succeed, otherwise nil.
string | nil
Load error message when loading fails. Not returned on success.

예제

source text를 컴파일하고 가능한 compiler error를 처리합니다.