ScriptName Function

Returns the full path of the currently executing script.


No arguments


Return type: string

Returns full path of currently executing script. If the script running directly from the script editor then this function will return the path of the file in the editor if there is one. If the script editor file has never been saved then the return value will be '<LocalScript>'