Currently, MouseFilter only supports one object and not an array of several objects. Is it possible that MouseFilter could be changed to fix this? The only way to combat this is to make a folder with all the objects and filter the folder which is really annoying to implement or even impossible in certain scenerios.
I think I’ve seen this suggested quite a few times and while it would be useful I think your best bet is to do it yourself using a blacklist with FindPartOnRay.
It’s a very inefficient solution to something that should be really simple. I don’t see why this is still not a thing, how hard would it be to implement?
local function raycastmousething(mouse, ignoreList, ignoreWater)
local ur = mouse.UnitRay
return workspace:FindPartOnRayWithIgnoreList(Ray.new(ur.Origin, ur.Direction*4999), ignoreList, false, ignoreWater)
end