Module script throwing an error while loading

Hi, we are having some issues with the module script.

  • The error we are having
    ghbnv

  • The script
    bn

Keep in mind that our script does not have any errors whats so ever.

Most of the topics we have read about are talking about plugins, but we don’t have any plugin running.

We did not find the solution so we made this topic, but here what we have tried so far, re-joining, join in-game, re-start studio, none of them works.

We will be very grateful if someone could help us figure out this problem.

Thanks for reading.

Your module has an error. Despite you thinking it does not, it does. Try replacing the module with code that returns an empty table,

return {}

If it doesn’t error (assuming you put a breakpoint after Attack has been defined) then your module indeed has an error.

We did that still returns an error.

Are you able to post the code for ToolManager, and Attack

I don’t get what do you want. We already tried make it return an empty and not empty and it still throw the error.

Are you able to post the code for the script ServerScriptService.ToolManager
image

local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local moduleScripts = ServerStorage:WaitForChild("ModuleScripts")
local Settings = require(moduleScripts.Settings)
local Attack = require(moduleScripts.Attack) -- Error start here before entering loop
while true do
	Attack.p()
    wait(Settings.Slash)
	Attack.cleanup()
	wait(Settings.transitionTime)
	Attack.reset()
end

Can you post the contents of the Attack script?

Somehow the script starts running all ok. Thanks for all who post here.

1 Like