Table.Unpack(Char:GetChildren() Only getting the humanoid root part?

So I have a script that is suppose to make some RaycastParams.
Only problem is when I try to get it to ignore the players characters children, it only ignores the root of the character???
I have no idea why. So can anyone tell me why??

function module.charIgnoreParams(char)
	local params = RaycastParams.new()

	params.FilterDescendantsInstances = {table.unpack(char:GetChildren())}
	params.IgnoreWater = true
	params.FilterType = Enum.RaycastFilterType.Blacklist
	
	
	return params
end
FilterDescendantsInstances = {char}

--or
FilterDescendantsInstances = char:GetChildren()

???
table.unpack is quite buggy

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.