Error with ModuleScript

I have a ModuleScript under a folder which the serverscript is in. Why isn’t the Module returning correctly? It shows the error ‘Module did not return one value exactly’ and ‘Requested module had an error while loading’

ServerScript:

local Module = require(script.Parent.Server)

wait(0.1)
Module.InitialiseOverhead()

The ModuleScript has a function called Overhead.InitialiseOverhead() inside it.

Please show us your module too, it can help us.

It’s an overhead rank-tag which is error free. The module isn’t functioning properly.

I understand. We still need to see the module, to see where the issues are at.

1 Like

I think the possible error is the part where it says

local image = game.ServerScriptService.Image:Clone()
image.Parent = PlayerTag

I changed this to

PlayerTag.Device.Image = 'rbxassetid://imageidhere'

Because as soon as I changed it, it worked somehow.

1 Like

Without seeing the actual module, we can not help you with your issue

2 Likes

Did you return the module table at the end of the modulescript?

3 Likes

I’m assuming you have

local module = {}

function module.initialiseOverhead()

end

instead of

local module = {}

function module.initialiseOverhead()

end

return module

If you have this error,that means module causes an error. Check in console for the error.

I doubt that he forgot to return it because it’s a template

1 Like

That’s what the error says. He either forgot to return a value, or he returned more than one.

3 Likes

Bruh, just show your module script.

He said he got it working. The fix he specified wouldn’t have fixed that specific error, but whatever. If it works, it works.

@Ey3r1sAlpha make sure to mark your comment as the solution

2 Likes

ok. extra characters.__________