Module wont require

image
image
image
My module won’t require and it has no errors.

Make sure you have required the ModuleScript correctly like so:

local myModule = require(script:WaitForChild("MyModule")

I have also noticed that StartModule seems to be a function in your ModuleScript (i’m assuming) but it needs to be written like this instead:

local module = {}

function module.StartModule()
    ...
end

return module
1 Like

the function is returned but thanks! <3

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