#table.unpacking a tag from collection service not working

2 messages · Page 1 of 1 (latest)

graceful spoke
#

    local FilterObjects = {table.unpack(CollectionService:GetTagged("CurrentlyObstructing")),table.unpack(CollectionService:GetTagged("MustObstruct")), workspace.Baseplate,table.unpack(self.Character:GetDescendants())}
    local params = OverlapParams.new()
    params.CollisionGroup = "Default"
    params.FilterDescendantsInstances = FilterObjects
    params.FilterType = Enum.RaycastFilterType.Exclude
    local objectsInSpace = workspace:GetPartBoundsInBox(self.WallViewer.CFrame,self.WallViewer.Size,params)