Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Raycast FilterDescendantsInstances makes result nil how to fix it?

Asked by
ym5a 52
2 years ago
Edited 2 years ago
        raycastParams.FilterDescendantsInstances = {mainModel}
        raycastParams.FilterType = Enum.RaycastFilterType.Blacklist

whenever I take off the filterdescendants it hits the HitBox itself but with the filter on it just returns nil https://gyazo.com/61d30487a8b94215f4323c26f7965b18 whatever player is in the hitbox (red part) i want it to shoot laser at but with filterdescendantsinstances it doesnt work i've tried literally everything but nothing works

0
it might be because mainmodel is not an array try it without brackets preston1196 82 — 2y
0
doesnt work, mainModel:GetDescendants doesnt work either ym5a 52 — 2y

Answer this question