Help with achieving a stackless error

Hey y’all!
First post here haha, and I need help with a bit of a weird one.
Basically, I’ve seen that the error() function has two things you can pass to it, one is a message, and the other is the level.
Now from what I’ve understood, if you pass in level 0, then there should not be any stack trace when it gets printed out to the console (The use case is specifically a client script).
However, when I ran error("meow", 0), I still saw the stack trace attached to the error both in studio and when I opened the client to try it normally.

(And yes, the entire script is just the error, as I’m testing)

1 Like

I think task.spawn(error,“blah blah”) is what you are looking for!

The stack trace will generate regardless of how you set the level parameter in error. This is likely a bug tbf.

As far as I’m aware, its not possible to completely hide the stack trace.

Hmm, I tried this, however instead of showing a proper stack, it Just logged the following;
image
(Ran task.spawn(error,"blah meow",0)

It definitely is, I saw it in a game I have access to but is close access only.
Basically it is one line of the error which just contains a message and some text, no stack trace whatsoever.