Raycasting is getting broken on FilterDescendantsInstances

    local character = player.Character
local rootpart = character.HumanoidRootPart

local rayparams = RaycastParams.new()
rayparams.FilterType = Enum.RaycastFilterType.Blacklist
rayparams.FilterDescendantsInstances = {character}
rayparams.IgnoreWater = true

if i add a character in FilterDescendantsInstances table then raycasting is getting broken

workspace:Raycast(rootpart.Position, rootpart.Position * 5, rayparams)

(server script)

Is this what youre trying to do?

rootpart.CFrame.LookVector * 5