I am using simplified code, but I am having a problem.
I have code that is somewhat similar to this on a fundamental basis:
(Inside of a module script named abcs)
function ABC()
local a = require(workspace.yes)
print(a.b())
return{}--What to return?
end
A, is a modulescript with the function b inside of it.
B:
function b()
return nil
end
Now when I try to require ABC I get this:
02:37:49.662 - Requested module experienced an error while loading 02:37:49.662 - Script 'wsk = require(workspace.abcs)', Line 1 02:37:49.662 - Stack End
Someone on the ROBLOX forum told me that all functions used in a modulescript must be returned, but I don't know how to return it and am having a lot of trouble.
Can you just not use modulescripts inside of modulescripts?

1 comment
I kind of understand now. Thank you for the answer, it has helped me a lot.