w1xx
(w1xx)
May 24, 2020, 8:13pm
1
Hi, we are having some issues with the module script.
The error we are having
The script
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.
w1xx
(w1xx)
May 24, 2020, 8:21pm
3
We did that still returns an error.
Are you able to post the code for ToolManager, and Attack
w1xx
(w1xx)
May 24, 2020, 8:24pm
5
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
w1xx
(w1xx)
May 24, 2020, 8:33pm
7
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?
w1xx
(w1xx)
May 24, 2020, 8:41pm
9
Somehow the script starts running all ok. Thanks for all who post here.
1 Like