Is it possible to insert a humanoid attribute into the exclude table? Now what I am referring to is not the player who spawns the Hitbox, it’s the one who touches it.
How do I make this work?
local hitbox = workspace.Hitbox --The hitbox
local ignore = {char, efx.hitbox, hitbox} -- The table
local overlap = OverlapParams.new()
overlap.FilterType = Enum.RaycastFilterType.Exclude
overlap.FilterDescendantsInstances = ignor
local result = workspace:GetPartsInPart(hitbox,overlap)
if #result > 0 then
for i,v in pairs(result) do
local ehum = v.Parent:FindFirstChild("Humanoid")
local eragdoll = ehum:GetAttribute("Ragdoll") -- The attribute I want to exclude
end
end