Why is this considered an error?

There’s nothing wrong with my code but I would just like to check for the reason why this would be a thing and how do I get rid of it.
image

Its cuz it’s deprecated. I’m not sure if it’s even replaced by something but that what came up on my script editor or smthn. It should work fine though

1 Like

It’s Include and Exclude, not Blacklist and Whitelist
More on Enum.RaycastFilterType here.

So to fix it just use:

Params.FilterType = Enum.RaycastFilterType.Exclude

Also I highly suggest hovering over the red line, so that you can see the error message and find the solution to the issue quicker yourself.

1 Like

i recomend you take a look on Raycast Documentation in the section of “Filtering”.

Raycast Documentation

1 Like

For PR reasons Whitelist and Blacklist have been renamed to Include and Exclude, and the former are deperecated (no longer reccomended to use).

1 Like

Thank you all. I completely forgot about Exclude.

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