๐ŸŸงCompileMoonString

Function that compiles moonscript into a function.

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

This function requires installation of an additional binary module gm_moonloader to compile moonscript.

Example Usage

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

Last updated