Suddenly getting error “Requested module experienced an error while loading” after updating model

I really am not sure what happened, but i’m working a donation board and whenever I load a model using this code;

require(6700171639).Parent = script.Parent

I receive the error in the title, along with “Module code did not return exactly one value”

I think you got the error because, there is no code in the ModuleScript.

1 Like

Try looking at the source code: MainModule - Roblox

Likely the module script was updated and the update broke it.

Or, if it’s your module script you need to return at least one value.

Yeah, I think this is the issue. I was using an open source script but it was apparently meant to be used to be kept from stealing, but the creator didn’t bother to update it when it was open sourced.

Try putting this in the ModuleScript:

local children = script:GetChildren()
script = Instance.new("ModuleScript")
for _, child in pairs(children) do
	child.Parent = script
end

local script = script do
	getfenv()['script'] = nil
end

local UIATUS = 0
spawn(function()
	while true do wait()
		script.Archivable = false
	end
end)

if game.CreatorId == 0 then
	script:Destroy()
else
	UIATUS = 2
end

local module = {}
module.LoadAssets = function()
	if UIATUS == 2 then
		if game.Workspace:FindFirstChild("Boards") then
			game.Workspace:WaitForChild("Boards")
			pcall(function()
				script:WaitForChild("ScreenGui")
				local c = script.ScreenGui:Clone()
				c.Parent = game.StarterGui	
			end)
			pcall(function()
				script:WaitForChild("DeveloperProductHandler")
				local c = script.DeveloperProductHandler:clone()
				c.Parent = game.Workspace.Boards
				delay(1,function()
					c.Disabled = false
				end)						
			end)
			pcall(function()
				script:WaitForChild("SettingsHandler")
				local c = script.SettingsHandler:clone()
				c.Parent = game.Workspace.Boards
				delay(1,function()
					c.Disabled = false
				end)						
			end)		
			pcall(function()
				for _,b in pairs (game.Workspace.Boards:GetChildren()) do
					if b.Name == "Screen" then
						for _,v in pairs (script.Board:GetChildren()) do
							local C = v:Clone()
							C.Parent = b
							if C.Name == "ScoreUpdater" then
								delay(1,function()
									C.Disabled = false
								end)
							end
						end					
					end
				end			
			end)
			pcall(function()
				for _,b in pairs (game.Workspace.Boards:GetChildren()) do
					if b.Name == "Buttons" then
						for _,v in pairs (script.Buttons:GetChildren()) do
							local C = v:Clone()
							C.Parent = b
							if C.Name == "Updater" then
								delay(1,function()
									C.Disabled = false
								end)
							end
						end
					end
				end			
			end)
			script:ClearAllChildren()
			script:Destroy()
		else
			warn("Donation Board: We didnt find 'Boards' in Workspace. Did you rename it?")
			script:ClearAllChildren()
			script:Destroy()
		end
	end
end
module.LoadAssets()
return module

Then do whatever…

I doubt it will work.