Is this possible with target filter?

Is there a possible way to set the target filter to every single transparent block in the map.

Like im not so sure what the most efficient way would be. All i can think of is:

game.Workspace:GetDescendents()
 If v:IsA("Part") then
  if v.Transparency == 1 then
   targetfilter = v
   end
 end
end

but then again, you cannot put more than one part as the target filter. Any help?

Mouse is deprecated hence why this feature is not available.

For the best solution:

  1. use CollisionGroups create a new group for transparent blocks called “Transparent”
  2. loop through workspace and set the transparent blocks to the
  3. Use the newer raycasting with another collision group which is unable to detect the “Transparent” collision group.

Also the newer mouse method with user input service: