How to check if the mouse is hitting a Child of a folder?

What I’m trying to do is to make a script to delete objects off a player’s plot. The thing I want to do is to make sure that if you click the object it is a child of a folder inside the plot. I was trying different ways but I can’t seem to figure it out.

Is there a way to check easily?

Current Script which Doesn’t work

local DeleteEvent = game.ReplicatedStorage.BuildEvents.DeleteObject
local CanDelete = false

script.Parent.FHOS.Frame.BuildFrame.Selection.Delete.TextButton.MouseButton1Click:Connect(function()
	if CanDelete then
		CanDelete = false
	else 
		CanDelete = true
	end
end)

local DelObj

Mouse.Button1Down:Connect(function()
	if DelObj then
		DeleteEvent:FireServer(DelObj.Parent)
	end
end)

RunService.RenderStepped:Connect(function()
	if CanDelete == true then
		if Mouse.Target then
			local PlotObjectSearch = Plot.PlacedObjects:FindFirstChild(Mouse.Target.Name)
			if Mouse.Target == PlotObjectSearch then
				DelObj = Mouse.Target
			end
		end
	end
end)

Is there a way of saying if Mouse.Target = Folder.Child then???

if Mouse.Target.Parent == Folder then

do this:

if mouse.Target.Parent.Name == "TestFolder"--[[name of folder]] then

I used If Object:SiDescendantOf() then