I have a main "Server" script, in this script I require a module and call a function within it. When I do this I get the error: "attempt to call a nil value". The function inside the module just prints "hi".
1 | local ServerScriptService = game:GetService( 'ServerScriptService' ) |
2 | local ModuleScript = require(ServerScriptService.ModuleScript) |
3 |
4 | ModuleScript:TestFunction() |