Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"Maximum event re-entrancy depth exceeded for ScriptContext.Error"?

Asked by 6 years ago

How do I prevent this from happening?

It's specifically pointing out line 1 is causing the error

game:GetService("ScriptContext").Error:Connect(function(message, trace, theScript)
    if theScript then
        print(theScript:GetFullName())
    end
end)

1 answer

Log in to vote
0
Answered by 6 years ago

The short answer is that you're erroring in a callback function that's called for every error.

Link150 has an extended explanation that details recursive functions.

0
Thanks that helped. tobyjing2005 107 — 6y
Ad

Answer this question