Normally you shouldn't be able to do this in standard Lua but there are hacky ways to edit at least local variables. Take a look at Rezecib's Upvalue Hacker.