From 8a1d772bb48d6c2b0fdecea59ae102615b489992 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sun, 25 Jun 2023 01:32:31 -0400 Subject: [PATCH] util: add traceback function that i stole https://discord.com/channels/805969743466332191/827848307480461313/1120318388540022794 it was in a fucking shitpost channel thanks again @dragekk this is probably the fifth thing i've stolen from you --- util.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util.lua b/util.lua index e8910b5..777a18e 100644 --- a/util.lua +++ b/util.lua @@ -204,4 +204,8 @@ local function recurseModelGroup(group) end util.recurseModelGroup=recurseModelGroup +function util.traceback() + return ({pcall(function() error("", 4) end)})[2]:match("stack traceback:.+$") +end + return util