math library is missing in the latest update of Logitech G-Hub
问题 local delay = math.random(25, 50) [string "LuaVM"]:5: attempt to index a nil value (global 'math') I can't use math.random anymore is there any way to fix this ? 回答1: If math library is missed you can insert the following code block at the beginning of your script. It will not fix the whole math library, but only some of the most frequently used functions (including math.random ). It will also fix the following errors: bad argument #1 to 'Sleep' (number has no integer representation) attempt