Question about collection service

Hello, I have made a blood system and it works by cloning parts and giving them random velocity and the parts use the velocity to get the direction and then fire a ray with that direction every heartbeat.

And I have made a RayIgnore tag that encompasses all the parts that should be ignored by the ray.
But I don’t know how CollectionService:GetTagged() works on the background. Like is it bad for performance? Because :GetTagged() will be ran every heartbeat.

Is this bad for performance?

1 Like

Hey, I found the answer you were looking for. CollectionService :GetTagged

2 Likes

So it’s not a problem if you’re tagging models instead of each part of the model.
Unless you’re game is too big, you should be fine.

Thanks for the info.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.