DiagnosticsOverviewNew · 0.744
getscriptcallstack
Describe a script-associated runtime call stack.
Details#
Returns available active frame metadata for a script's associated thread. Frames include name, source and currentline; a script without a thread yields an empty array rather than an execution history.
Examples#
Example
local ownScript = Instance.new("LocalScript")
for _, frame in ipairs(getscriptcallstack(ownScript)) do
print(frame.name, frame.currentline)
end
ownScript:Destroy()