When you raycast with a whitelist, the ray’s whitelist also includes all the descendants. For example, if your white list is equal to workspace.Part and there are other parts in workspace.Part, the whitelist will also include those parts. Is there a way to ignore the descendants?
From WorldRoot | Documentation - Roblox Creator Hub
- Parts that are in a collision group that does not collide with the “Default” collision group are ignored implicitly.
So… you could have them in a different collision group? But no, I don’t think this is possible otherwise. Don’t parent parts to parts