Hello, is there any way to make mouse target filter different parts, without grouping them?
Could you maybe use the IsA() function?
I am using it, but the problem is to make mouse ignore more parts than just one.
Why do you dont group the parts with a script?
That would kinda bother me with scripting in the future.
https://developer.roblox.com/en-us/api-reference/property/Mouse/TargetFilter
You could use FindPartOnRayWithIgnoreList
Alright, i might try that one as well, thanks!
Here is a clever solution:
mouse:GetPropertyChangedSignal(‘Target’):Connect(function()
if mouse.Target.Name == “badpart” then
mouse.TargetFilter = mouse.Target
else
mouse.TargetFilter = nil
end
end)
Instead of checking for a single part make sure you create an array to blacklist all the parts you want to ignore.
This is a very nice and interesting approach, thanks for it!
Only problem you would have with this is that if you had 2 overlapping parts it would only ignore 1 of the parts
works better without setting the target filter to nil