I have a model named Car. I am attempting to check if any part in Car is touched, and if so, run a function that damages the car, etc. However, I cannot get this to work. I believe I could use GetChildren and check if each one is a part, but would this be laggy? Using the Touched event directly on Car did not work:
car.Touched:connect(collide)
Apparently I cannot use the Touched event on a model. This is understandable.
So, how would I do this without causing lag, having glitchy hitboxes, or some similar problem?
Also, how do I check if the part I collided with is part of the model?

4 comments
Making a table with 2000+ values is not laggy, so why would 100 values or so be laggy?
So it's not laggy. But how would I check for the Touched event with every part in the table?
You might be better off adding in the touched event to the part that is doing the damage
kingdom5, that would not work because I am having other cars running into cars so I would have the same problem anyway.