Give location of nils in output

What would be really nice is to know where in the script you are getting a nil. At the moment the output looks something like this:

11:20:31.204 - attempt to call a nil value

it would be more useful, I think, if it also displayed the line number where it got the nil. So, it might look something like this:

11:20:31.204 - attempt to call a nil value, Line 38

I’m pretty sure it already does this in the stack trace:

16:46:23.706 - Requested module experienced an error while loading
16:46:23.706 - Script 'ServerScriptService.LeaderstatsSetup', Line 2
16:46:23.707 - Stack End

EDIT: Yeah, it’s a different error, but it should be the same principle.

I have seen what you are talking about, but for a particular script all I am getting is:
11:20:31.204 - attempt to call a nil value
here is the model:

I fixed up the script and updated the model so I don’t have that problem anymore :slight_smile:

Other errors do this too. I think non-scriptable members and locked members do it.