Working on something to create shadows (the details don't matter to much so I won't post them) but long story short I am trying to get a list of all bricks touching the physical shadow without counting bricks that are also shadows, and every time during the list it counts "nil" as part of the list
Heres the code if that helps
local brickstouching = shadow:GetTouchingParts()
print("printing list")
for i=1,#brickstouching do
print(brickstouching[i])
if brickstouching[i].Name == "PhysicalShadow" or brickstouching[i].Name == "shadowunionbrick" then
table.remove(brickstouching,i)
end
end
