I'm trying to ignore multiple parts that are in a table in a .Touched function
local ignore = {} touchevent = workspace.Part.Touched:connect(function(touched) if touched ~= ignore then print("aaa") end end)
You would check if the part is a descendant of the things on the ignore list.
local ignore = {} workspace.Part.Touched:Connect(function(hit) for _,v in pairs(ignore)do if hit:IsDescendantOf(v) then return end end -- code end)