I am trying to make a raycast with ray cast params where I have a table of meshes to be ignored. But this doesn’t work. It instead does register the meshparts as if the raycast params haven’t even been given. Does rays ignore meshes? If so, is there something I can do about it?
local rp = RaycastParams.new() rp.FilterDescendantsInstances = folder:GetDescendants() rp.FilterType = Enum.RaycastFilterType.Exclude local ray = workspace:Raycast(humCF.Position,lookVector*beamSize,rp) if ray then print(ray.Instance) --Prints a mesh part from inside the folder end