Page 1 of 1

Debug Warning when I start level

Posted: Tue Feb 15, 2022 5:16 pm
by Yellow_Drill
Image
Whenever i try and start a specific level this warning comes up although my achievement works fine and can be obtained correctly. I am relatively new to lua coding so im not sure what is causing this, if anyone knows please let me know :D

Re: Debug Warning when I start level

Posted: Tue Feb 15, 2022 5:41 pm
by deice
this error means you are trying to access a 'nil' value (a variable with nothing assigned to it) as if it were a table. if you could post your code, it would make it easier to find exactly what's wrong.

Re: Debug Warning when I start level

Posted: Tue Feb 15, 2022 10:13 pm
by Hoeloe
I looks to me like on line 19 of your code you've tried to call something in the "Misc" class, but have written "misc" instead. Lua is case-sensitive, so "misc" does not exist, while "Misc" does.