What is game._?

Saw this in a couple of posts and was wondering what is was.

I’ve tried to output it, check its type, and even try to call it (if it’s a function) and nothing seems to work at all.

print(game._)
-- nothing is outputted at all. not even nil

And I’ve searched it up but I don’t get anything relevant at all

nevermind. just looked back and it looks like whatever it is was wrapped in a protected call

For future readers, it was probably just something used to error so that the error callback within xpcall would run. Why use game? Because an underscore _ by itself would give you a attempt to call a nil value error even with the protected call in place.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.