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
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.