director error module credits must have a new function
Hello, I got an error while trying to director a button to go to my credits scene, it says Director Error, Module "credits" must have a new () function. Now, I've been using the same way to set up all of my menus and now its not working, for some reason, It only gives me the error when trying to go to the credits.lua file. Does anybody know the reason for this?
Here is a link to an image of the error I received