Before you link me this post, I already tried the solution and it didn’t help.
The following code is inside of a LocalScript under a Tool:
local MouseCastParams = RaycastParams.new
MouseCastParams():AddToFilter(character)
MouseCastParams().FilterType = Enum.RaycastFilterType.Exclude
print(MouseCastParams().FilterDescendantsInstances)
Printing yields an empty table every time. character is the character model of the player who owns the tool. I’ve made sure the character isn’t nil; printing it returns the character’s name as it should. Not that it matters because I’ve tried putting other things into the filter and they don’t get added either.
I’ve tried adding to the filter via table.insert and it still didn’t work.
Everything else in the script runs just fine so I really don’t know what the issue is here. No errors in output.