Raycasting doesn't work

I’m trying to use raycasting to detect a certain model, but it doesn’t detect it, despite being right in front of the object.
function module.CheckConveyor(detector, direction, distance, blacklist)
local cS = game:GetService(“CollectionService”)

	local raycastParams = RaycastParams.new()
	raycastParams.FilterDescendantsInstances = {blacklist}
	raycastParams.FilterType = Enum.RaycastFilterType.Blacklist

	print(detector.CFrame.LookVector)
	local raycastResult = workspace:Raycast(detector.Position, detector.CFrame.LookVector*distance, raycastParams)

	print(raycastResult)
	if raycastResult then
		local hit = raycastResult.Instance
		if cS:HasTag(hit, "ConveyorEntrance") then
			return hit
		end
	end

end

When I un blacklisted the model that is raycasting, it detects itself.

is blacklist in the function an array?
If it is try rayCastParams.FilterDescendantsInstances = blacklist
ie drop the {}