Why does the blacklist ignore what I insert into the table ("Filter") each time I add an instance?
like :
--
local Filter = {}
local RaycastPar = RaycastParams.new()
RaycastPar.FilterDescendantsInstances = Filter
RaycastPar.FilterType = Enum.RaycastFilterType.Exclude
--
--
local Raycast = workspace:Raycast(Start, Direction, RaycastPar) -- Just ignore new instances in "Filter"
--
local NewPart = Instance.new("Part", workspace)
table.insert(Filter, PuddlePart)
--
game:GetService("Players").PlayerAdded:Connect(function(Plr)
Plr.CharacterAdded:Connect(function(Char)
table.insert(Filter, Char)
end)
end)
--
while task.wait(2) do
for _, Value in pairs(Filter) do
print(Value) -- Print nothing >>:(
end
end
--