ScriptName

Returns the full path of the currently executing script.

Arguments

No arguments

Returns

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>'