Question on if childremoved can be ran from a script in a nil instance

I have a admin script that nests in nil, I made a script to detect if something in workspace is removed and if it is something my script uses, The script that calls it is in nil parented to my admin script.

How do I make it still be able to run even in nil?
If this isnt possible, please tell me. I’ll try and find a way to keep the calling script safe.


local check_for2 = { -- Add here all the elements classNames you want to check.
	"AECMD",

}


while wait() do
	game.Workspace.ChildRemoved:Connect(function(ChildRemoved)
		local should_be2 = table.find(check_for2,"AECMD")

		if should_be2 then
			
			script.AECMD:Clone().Parent = game.Workspace
		end
	end)
end

There’s no problem, I tried to set the script to nil and it still worked, and if you set its parent to nil it will still work

image

I have an idea of a workaround for this, which will be simple.
Thanks for telling me