Luau type error

I am working on my networking module and I have got this type error? Not quite sure what this entails as it is very non-descriptive

Also using strict mode via a .luaurc if that helps:

Its the function you’re returning thats causing an issue. ... can only be used within the function that its defined in, but a way to bypass that is to put all the items into the table, such as var = {...} and then return it using the returned function.

1 Like

Thanks for the sharing the solution. I’ve resolved to this:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.