Does humanoid objects cause more lag than a few number or string values

I was wondering if using the humanoid object for something like keeping track of hp for objects would cause lag and if it would be more efficient to just use some string/number values to keep track of those things, or if it even better to use attributes for keeping track of values

Attributes would be the best for performance. They aren’t instances so a bit of performance is saved there.

Second would be values, they’re instances so they will have an impact in large numbers, but it wouldn’t be crazy.

Humanoids would be the worst depending on what you need. If you’re creating an NPC that can walk, jump, have health and die, then humanoids would be the easiest method, but in large numbers they create a lot of lag.

If you just need an object that has health only, then just use values or better yet attributes.

2 Likes

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