Hi!
I’m desperate as i tried every possibilities imaginable to get this module call working but all i’ve got are miserable crashes and nil. Note : I’m a beginner and it’s the first time I use classes.
[lua]local wallClass = require(“wallclass”)
local newWall = wallClass.newWall
print(newWall) --> nil[/lua]
Then when I call the function in my code :
[lua]local wall = newWall(wallShape)
world:insert( wall )[/lua]
I get this in the console :
attempt to call upvalue ‘newWall’ (a nil value)
Any help appreciated.
Thanks [import]uid: 25327 topic_id: 8537 reply_id: 308537[/import]