attempt to index a nil value (global 'math'))

869 views Asked by At

I am using lua to make scripts in my game,

after updating the lua libs version from 5.1 to 5.3, an error appears on the game engine every time I use math.X in a function

error :

Lua run doFile failed.attempt to index a nil value (global 'math'))

original code :

local value = math.random(1,10)

do you have any solutions ?

0

There are 0 answers