FilterDescendantsInstances doesn't work?

So I’m making a gun system and I have 2 raycasts running on every fired shot to determine the hit and one to prevent wallbanging. Although when shooting, 9 times out of 10 it hits my arm:

(Green part is Raycast.Position)

Although I have set it obviously to ignore the character:

image


(self.char is a valid character)

What could be causing the issue and how do I fix it. Thank you.

Have you waited for the char to fully load. Maybe try adding a task.wait(0.1) before you set it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.