This code does not pick up descendants of the spot folder in workspace, and I’m not sure why. For example, this neon blue part, which is a descendant of Spot, however it is not working at all. I tried moving both the script and RadarBig outside of the model but it still outputs the same results. If I remove the filter parameters then it just outputs some parts that are descendants of the drillrig model, which I don’t understand, as it doesn’t output anything else.
drill = workspace.DrillRig
part = drill.Atenna.RadarBig
minimap = drill.Panel.Radar
local params = OverlapParams.new()
params.FilterDescendantsInstances = workspace.Spot:GetChildren()
params.FilterType = Enum.RaycastFilterType.Include
local objectsInSpace = workspace:GetPartsInPart(part,params)
while true do
wait()
for i,v in pairs(objectsInSpace) do
print(v.Name, "This")
end
end
Any help would be greatly appreciated