Skip to content

Global GetScriptName

Get the current name of the script.

Syntax

string GetScriptName()

Parameters

This function has no parameters.

Return value

The function returns a string with the name of the script.

Example

local name = GetScriptName();

print(name);