MouseFilter support for several objects?

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.

Thanks!

3 Likes

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.

1 Like

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?

Almost impossible to implement as a property. As two add/remove methods, maybe, but I don’t really see why you can’t just raycast on your own.

1 Like

more difficult for them than for you

local function raycastmousething(mouse, ignoreList, ignoreWater)
	local ur = mouse.UnitRay
	return workspace:FindPartOnRayWithIgnoreList(Ray.new(ur.Origin, ur.Direction*4999), ignoreList, false, ignoreWater)
end
4 Likes