VINDICTA.TOP
Closures · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

getcallingscript

Returns the Script instance that initiated the current call chain.

function getcallingscript(): Script?Script?The script instance that initiated this call, or nil.

Usage

Log caller identity
hookfunction(game.Players.LocalPlayer.Character.Humanoid.TakeDamage, newcclosure(function(self, amount)
	print("TakeDamage called by:", getcallingscript())
end))