Roblox just removed "Enum.RaycastFilterType.Blacklist", Messed up my whole code

I just looked at on of my Modules that creates RaycastParams.

Only problem is that “Enum.RaycastFilterType.Blacklist” Doesn’t work anymore???

So what do I replace this with?

I noticed that “Enum.RaycastFilterType.Exclude” Is a thing. So is that how I would do it?
And is it the same as doing it with Blacklist? Or do I have to change values and stuff? All I know is,
I AM SO CONFUSED!!

Help is appreciated!

13 Likes

Enum.RaycastFilterType.Blacklist and Whitelist were deprecated a while back and replaced with Include/Exclude, however iirc internally the deprecated Whitelist and Blacklist enums point towards the newer ones, so the script shouldn’t theoretically be broken. Enum.RaycastFilterType.Exclude is the same thing, so just replace Blacklist with Exclude and Whitelist with Include.

49 Likes

You’re a lifesaver, I was so worried!

4 Likes

I don’t understand why roblox changes the name when it’s not necessary.

43 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.