Orange Line under Enum.RaycastFilterType.Blacklist

Hello! I have an orange line under Enum.RaycastFilterType.Blacklist and here is the code:

local function MouseRaycast()
	local mousePosition = UIS:GetMouseLocation()
	local mouseRay = camera:ViewportPointToRay(mousePosition.X, mousePosition.Y)
	local raycastParams = RaycastParams.new()
	raycastParams.FilterType = Enum.RaycastFilterType.Blacklist

	
	
	local raycastResult = workspace:Raycast(mouseRay.Origin, mouseRay.Direction * 1000)
	return raycastResult -- Return the result of the raycast
end

Thats because Blacklist and Whitelist RaycastFilterType Enum values are deprecated. Use Enum.RaycastFilterType.Exclude instead of Enum.RaycastFilterType.Blacklist

2 Likes

Because Roblox has gone woke and decided to change blacklist and whitelist to exclude and include. Yes I am unironically using the word “woke” for once. By the way there’s no difference.

1 Like

If you move your mouse cursor over the line, it tells you why. It’s deprecated. Use Enum.RaycastFilterType.Exclude and .Include instead.

1 Like

Thank you and I think that’s dumb how Roblox did that.

1 Like

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