When it hits two or more parts at the same time. It doesn’t seem to disable multiple collisions for me. Take the following image and run it in studio:
So basically kinda like this:
while true do
task.wait()
local returnedarray = workspace:GetPartsInPart(part, optionalparameterstofilterpartsdetected)
for i, part in returnedarray do
print(part)
end
end
in the script I used a while loop, but you could also use an event of some sort to check if you will.
Okay since it has been solved by treebee63, I see what my missunderstanding was.
Sorry for the inconvenience ^^
I would still have to do this for every part, which would mean the same part would be ran more than once, so it still has this collision problem.
No you can just do it one part, it detects all of the colliding parts.
You’re not understanding. I may have over a hundred parts in the game. Checking one part does not do anything if it doesn’t detect 99% of the other parts.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.