How can I reconnect the Inventory with the EquipFrame after I hanged the position?

Hi everyone I’m currently working on an Inventory System and recently I had to change the Position of my EquipFrame from my InventoryFrame to InventoryGui because the InventoryFrame was a ScrollingFrame an it didn’t show the EquipFrame cuz of that:
Roblox(52)
And my issue is that like I said I had to put the EquipFrame as a Child of the InventoryGui instead of the InventoryFrame and now it doesn’t work cuz of the Position. Now I have 2 small Scripts and I just need to know where I can change the Position of InventoryFrame to InventoryGui

local InventoryEvent = game.ReplicatedStorage.Remotes.InventoryEvent
local itemFrame = script.Parent:FindFirstChild("ItemsFrame")

InventoryEvent.OnClientEvent:Connect(function(ItemName, Value)
	if Value == true then

		local ItemButton = script.Parent.ItemsFrame.ItemButton:Clone()
		ItemButton.Visible = true
		ItemButton.Name = ItemName
		ItemButton.Text = ItemName
		ItemButton.Parent = itemFrame

		local equipButton = script.Parent.EquipFrame["EquipButton"]

		ItemButton.MouseButton1Click:Connect(function()
			script.Parent.EquipFrame.Title.Text = ItemName
			script.Parent.EquipFrame.Title.Visible = true
			equipButton.Visible = true
		end)
	end

end)




local inventoryEvent = game.ReplicatedStorage.Remotes.InventoryEvent

game.Players.PlayerAdded:Connect(function(player)

	local inventory = player:WaitForChild("Inventory")

	local inventoryFrame = player.PlayerGui:WaitForChild("InventoryGui").InventoryFrame.ItemsFrame:GetChildren()

	inventory.ChildAdded:Connect(function(Item)
		inventoryEvent:FireClient(player, Item.Name, true)
	end)
end)

inventoryEvent.OnServerEvent:Connect(function(player, ItemName, Value, button)

	if Value == false then
		local SelectedItem = player.Inventory:FindFirstChild(ItemName)
		local backpack = player.Backpack:GetChildren()
		local stuff = player.Character:GetChildren()

		if #backpack == 0 and not player.Character:FindFirstChildWhichIsA("Tool") then
			button.Text = "Unequip"
			button.BackgroundColor3 = Color3.new(255,0,0)
			SelectedItem:Clone().Parent = player.Backpack
		else
			for i,v in ipairs(backpack) do
				button.Text = "Equip"
				button.BackgroundColor3 = Color3.new(0,255,0)
				v:Destroy()
			end
			for i, v in ipairs(stuff) do
				if v:IsA("Tool") then
					button.Text = "Equip"
					button.BackgroundColor3 = Color3.new(0,255,0)
					v:Destroy()
				end
			end
		end
	end
end)




well I have this grid out thing for the tools in my Inventory but I need to connect my InventoryFrame with my EquipFrame and someway it does only work when I put the EquipFrame in the InventoryFrame and I’M tryna figure out why this is like that I often got this error after I took then EquipFrame out SelectedItem:Clone().Parent = player.Backpack