local TARGET_NAMES = { ThiefOrb = true, Drone = true } local function removeIfTarget(obj) if obj:IsA("BasePart") and TARGET_NAMES[obj.Name] then obj:Destroy() end end for _, obj in ipairs(workspace:GetDescendants()) do removeIfTarget(obj) end workspace.DescendantAdded:Connect(removeIfTarget)