Exception while signaling: Must be a LuaSourceContainer

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    Get rid of an error “Exception while signaling: Must be a LuaSourceContainer”
  2. What is the issue?
    The Script i use to keep tools whenever i respawn keeps printing the error stated above every script thats included in every tool (my tools have 20 scripts total, so it prints around 18-20 errors every respawn)
  3. What solutions have you tried so far?
    ive tried rewriting the code completly, and it still didnt work, tho it probably has to do something with :destroy() or just table saving
local Inventory = {}

local function Spawned(Char)
	local Plr = game.Players:GetPlayerFromCharacter(Char)
	for i,v in pairs(Inventory[Plr]) do
		if Plr['Backpack']:findFirstChild(v.Name) then
			Plr['Backpack'][v.Name]:Destroy()
		end
		v.Parent = Plr['Backpack'] 
	end
	Inventory[Plr] = {}
	Char:WaitForChild('Humanoid').Died:connect(function()
		for i,v in pairs({Plr['Backpack'], Char}) do
			for ii,vv in pairs(v:GetChildren()) do
				if vv:IsA('Tool') then
					table.insert(Inventory[Plr], vv:Clone())
				end
			end
		end
	end)
end

game.Players.PlayerAdded:connect(function(Plr)
	Inventory[Plr] = {}
	local Char = Plr.Character or Plr.CharacterAdded:wait()
	Spawned(Char)
	Plr.CharacterAdded:connect(Spawned)
end)

Ive ben trying for a while already, and i cant seem to find the exact reason on why its happening, the script itself works as it should, but the error that get printed just scares me, i dont want the script to ruin everything i did so far.

I dont really understand why you are using GetPlayerFromCharacter for CharacterAdded, just add the function inside PlayerAdded, and you should have access to the Player.

well its probably not relevant for the issue im encountering, but i guess u could also do that in that way

It might be, because the only reason that would be happening is if the Humanoid doesnt exist, or hasnt spawned in yet.

LuaSourceContainer just means a Base Class, Like for Example: BasePart, BaseScript, ValueBase, Script, LocalScript.

I will try later, for now im gonna focus on other stuff i need to do, l will check up on this issue later on, thanks.