Loads a Lua script from a string. Any global code gets executed when loading the script if any such exists in the script. Functions and classes do not get executed until their called.
If loading fails then you can use the GetLastErrorMessage function to get hint of why loading failed.