With my current skills, I can only create objects that rays ignore prior to the ray being created, but now I realise there's new objects being added to the game which parents are specific and a ray must ignore; however I am struggling to achieve this has a ray ignore lists must be defined prior to a ray being created. A mundane solution could be to create a second ray, however this would mean I will have to change a significant amount of code which could cause other problems and may affect performance. Another thing I would also like to know is if the following code:
for i = 10, 50 do
--casting a ray function
end
Without any waits(), will this cause performance issues, I am attempting to create rays to see if the surrounding parts has anything between the ray origin and the part itself.

1 comment
https://developer.roblox.com/api-reference/function/Workspace/FindPartOnRayWithIgnoreList