I want to use inspect.lua to examine the game state at runtime. How do I load it with a script so that it's always available in the console, and I don't have to write inspect = game.ReplicatedStorage["inspect.lua"]
every time I want to use it?
Assigning to _G.inspect
or shared.inspect
surprisingly doesn't work, the variable is nil
.
Using setfenv(0, ...)
doesn't work either.