local caster = fastcast.new()
local fcBehaviour = fastcast.newBehavior()
local castParams = RaycastParams.new()
castParams.FilterDescendantsInstances = {char}
castParams.FilterType = Enum.RaycastFilterType.Exclude
fcBehaviour.RaycastParams = castParams
When I do caster:Fire(tool.FirePart.Position, finalDirection, 500, fcBehaviour), the params seem to completely ignore the specified table. When the filter type is set to Exclude, nothing can be hit by the ray; when it’s set to Includeeverything can be hit by the ray, regardless of the actual filter table.
Not sure what’s going on - I tested the same params with a normal Raycast and it worked correctly. Does anyone have any ideas? Issue with FastCast?
Ok I figured out this problem. I had to set the behavior.AutoIgnoreContainer to false since the CosmeticBulletObject was parented to workspace and it was ignoring all workspace descendants.
But now I’m having another problem: With the blacklist for the player character, if the ray does hit the character, it will completely stop the raycast. Surely it’s just meant to completely ignore the character and continue as if it weren’t there?
Edit: Nevermind I’m just dumb - I was also doing a raycast from the camera to find the trajectory between the camera and end of the gun and I forgot to blacklist the character on that too