"hitbox isnt a valid member of model" when print shows there is

hey all, I’ve been trying super hard to figure this out, but I am officially stumped.

when I clone a model, and run a print to show all children inside it, it shows the hitbox, but when I try use it in a command line, it returns as theres nothing there, can anyone point out any error for me?

local function placing()
	local saved = CFrame.Angles(0, 0, 0)
	local dropped = player.Holder:FindFirstChildWhichIsA("Model")
	local outline = dropped:Clone()
	outline.Parent = game.Workspace
	outline.ProximityPrompt:Destroy()
	print(outline:GetChildren())
	
	local filter = OverlapParams.new()
	filter.FilterType = Enum.RaycastFilterType.Exclude
	filter.FilterDescendantsInstances = outline:GetChildren()

	local target = Mouse.Target
	Mouse.TargetFilter = outline

	for i,v in pairs(outline:GetDescendants()) do
		if v:IsA('BasePart') then
			v.Material = "ForceField"
			v.CanCollide = false
		end
	end
	print(outline:GetChildren())
	debounce = true

	Mouse.WheelForward:Connect(function()
		outline:PivotTo(outline:GetPivot() * CFrame.Angles(0, math.rad(-rotation), 0))
		saved = outline:GetPivot().Rotation
	end)

	Mouse.WheelBackward:Connect(function()
		outline:PivotTo(outline:GetPivot() * CFrame.Angles(0, math.rad(rotation), 0))
		saved = outline:GetPivot().Rotation
	end)

	Mouse.Button1Down:Connect(function()
		if debounce == true then
			local touching = game.Workspace:GetPartsInPart(outline.hitbox)
			if #touching <= 0 then
				debounce = false
				local pos = outline:GetPivot()
				RS.RemoteEvent.dropItem:FireServer(dropped, pos)
				outline:Destroy()
			else
				print("colliding")
			end
		end
	end)
	
	while wait(.01) do
		if debounce == true then
			local orientation, size = outline:GetBoundingBox()
			local touching = game.Workspace:GetPartsInPart(outline.hitbox)
			for i,v in pairs(outline:GetDescendants()) do
				if v:IsA("BasePart") then
					if #touching >= 1 then
						v.Color = Color3.fromRGB(255,0,0)
					else
						v.Color = Color3.fromRGB(0,255,0)
					end
				end
			end

			outline:PivotTo(CFrame.new(Mouse.Hit.Position) * saved)
			if Mouse.TargetSurface == Enum.NormalId.Top then --Top
				outline:PivotTo(CFrame.new(outline:GetPivot().X, (Mouse.Target.Position.Y + (Mouse.Target.Size.Y/2)) + size.Y/2, outline:GetPivot().Z) * saved)
			elseif Mouse.TargetSurface == Enum.NormalId.Bottom then --Bottom
				outline:PivotTo(CFrame.new(outline:GetPivot().X, (Mouse.Target.Position.Y -(Mouse.Target.Size.Y/2)) - size.Y/2, outline:GetPivot().Z) * saved)
			elseif Mouse.TargetSurface == Enum.NormalId.Right then --Right
				outline:PivotTo(CFrame.new((Mouse.Target.Position.X + (Mouse.Target.Size.X/2)) + size.X/2, outline:GetPivot().Y, outline:GetPivot().Z) * saved)
			elseif Mouse.TargetSurface == Enum.NormalId.Left then --Left
				outline:PivotTo(CFrame.new((Mouse.Target.Position.X - (Mouse.Target.Size.X/2)) - size.X/2, outline:GetPivot().Y, outline:GetPivot().Z) * saved)
			elseif Mouse.TargetSurface == Enum.NormalId.Back then --Back
				outline:PivotTo(CFrame.new(outline:GetPivot().X, outline:GetPivot().Y, (Mouse.Target.Position.Z + (Mouse.Target.Size.Z/2)) + size.Z/2) * saved)
			elseif Mouse.TargetSurface == Enum.NormalId.Front then --Front
				outline:PivotTo(CFrame.new(outline:GetPivot().X, outline:GetPivot().Y, (Mouse.Target.Position.Z - (Mouse.Target.Size.Z/2)) - size.Z/2) * saved)
			end
		end
	end
end

This may be because when the MouseDown event is triggered, outline is destroyed. If someone then presses their mouse down a second time, outline.hitbox does not exist.

this can possible due to the hitbox getting destroyed try printing outline:GetChildren() right before it errors

but clicking twice wouldn’t do anything as I’ve got the debounce, so if the click goes through, the debounce turns to false

the line right before says theres no hitbox, it errors, then shows theres a hitbox after ?

I fixed the issue by putting

if debounce == false then break; end

although another seperate issue has arisen and I’ll make a seperate post for that