Adding things to a raycast ignore list

I am developing a game and I had a question pertaining to the concept of raycast ignorelists…

Example:

local ignore_list = {character}
--character is referring to the player's own character model / instance


local part = Instance.new("Part")
part.Parent = character

Would this newly added part get added to the ignore_list considering that it’s a descendant of the character? or would I have to re-update the ignorelist?

Yes, all descendants of the instances in your ignorelist will be ignored. It’s implied by the name of the parameter, “ignoreDescendantsTable”.

5 Likes