🟧CompileMoonString

Function that compiles moonscript into a function.

CompileMoonString( string moonCode, string identifier, boolean handleError ) -> function

Example Usage

local func = CompileMoonString( [[print "Hello World!"]], "My Compiled MoonScript" )
func()
-- Hello World!

Last updated

Was this helpful?