You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
To add excluded descendants to the ray cast params.
- What is the issue? Include screenshots / videos if possible!
Not working, excluded still being detected as a raycast instance.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
No solutions have worked.
Code:
local Params = RaycastParams.new()
Params.FilterDescendantsInstances = script.Parent:GetDescendants()
Params.FilterType = Enum.RaycastFilterType.Exclude
local Raycast = workspace:Raycast(script.Parent.Position,Direction,Params)
The raycast params exclude part is the dependent’s of the parent. But the raycast still detects instance inside the parent.