Unknown Require fixes after editing script but persists if reopening roblox studio

So I have been working on a text based admin module, and i’ve been coming across the following warning a lot.
image
The Explorer:
image
The Script

local Plrs = game.Players:GetChildren()
local module = {}
local TargetFinder = require(script["TargetFinder(CORE)"])

local module = {
--- WalkSpeed ---
{

Name = "walkspeed",
Aliases = {"ws", "speed"},
Permissions = {"Owner","Admin","Moderator"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function(targets)
	pcall(function()
		for i,v in pairs(targets) do
		game.Workspace[tostring(v)].Humanoid.WalkSpeed = params[2]
		end
	end)
end;
local targets = TargetFinder.FindTarget(playerWhoUsedCommand, params[1])
CMDRunner(targets)
end;

};
--- End WalkSpeed ---
--- Kill ---
{

Name = "kill",
Aliases = {},
Permissions = {"Owner","Admin","Moderator"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function(targets)
	pcall(function()
		for i,v in pairs(targets) do
		game.Workspace[tostring(v)].Humanoid.Health = 0
		end
	end)
end;
local targets = TargetFinder.FindTarget(playerWhoUsedCommand, params[1])
CMDRunner(targets)
end;

};
--- End Kill ---
--- JumpPower ---
{

Name = "jumppower",
Aliases = {"jp"},
Permissions = {"Owner","Admin","Moderator"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function(targets)
	pcall(function()
		for i,v in pairs(targets) do
		game.Workspace[tostring(v)].Humanoid.JumpPower = params[2]
		end
	end)
end;
local targets = TargetFinder.FindTarget(playerWhoUsedCommand, params[1])
CMDRunner(targets)
end;

};
--- End JumpPower ---
--- Ban ---
{

Name = "jumppower",
Aliases = {"jp"},
Permissions = {"Owner","Admin","Moderator"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function(targets)
	pcall(function()
		for i,v in pairs(targets) do
			local temp = require(script.BanSystem)
			temp.Ban(Settings.BanStore, v)	
		end
	end)
end;
local targets = TargetFinder.FindTarget(playerWhoUsedCommand, params[1])
CMDRunner(targets)
end;

};
--- End Ban ---
--- UnBan ---
{

Name = "jumppower",
Aliases = {"jp"},
Permissions = {"Owner","Admin","Moderator"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function(targets)
	pcall(function()
		for i,v in pairs(targets) do
			local temp = require(script.BanSystem)
			temp.RemoveBan(Settings.BanStore, v)	
		end
	end)
end;
local targets = TargetFinder.FindTarget(playerWhoUsedCommand, params[1])
CMDRunner(targets)
end;

};
--- End UnBan ---


-----------SPECIAL COMMANDS (DO NOT EDIT BELOW THIS LINE)-----------
--- ModCall ---
{

Name = "modcall",
Aliases = {},
Permissions = {"Owner","Admin","Moderator","Non-Admin"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function()
		local temp = require(script.ModCallSystem)
		temp.Call(playerWhoUsedCommand, params)
end;
CMDRunner()
end;

};
--- End Modcall ---
--- Recieve ---
{

Name = "recieve",
Aliases = {},
Permissions = {"Owner","Admin","Moderator"},
Start = function(playerWhoUsedCommand, params, Settings)
local CMDRunner = function()
pcall(function()
	local temp = require(script.ModCallSystem)
	temp.Recieve(playerWhoUsedCommand, params[1])
end)
end;
CMDRunner()
end;

};
--- End Recieve ---
}
return module

Any time I use require in the script it spits out a warning, it also doesn’t matter where MainModule is either.
But the main question I have is: Why does it go away if I edit the script, but reappears when I reopen studio?

This post may be able to diagnose your problem:
https://devforum.roblox.com/t/w000-unknown-require-its-definitely-there/507791

Best of luck!

1 Like

Thank you, I read the responses and they fixed it!

1 Like