Set all variables in lua as local ones.

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>