Is using the new actors instance for npc scripts a good idea?

Hello, I was wondering if putting scripts that were in an NPC model into an actor was a good idea. I was trying to resolve lag caused by the NPCs by making use of the new Actors instance from Parallel Lua. To my surprise not much has changed in the ping. Note: I do not know much about actors or parallel lua

image_2022-07-14_203544461

If you know better the NPCs, then I would recommend putting those scripts at the NPC, else keep them like that. If the scripts work at the “Actor” you could let them there, but if you know better the NPCs, I would recommend putting them at the NPC.

If my answer was helpful, do not forget to make it as the solution! :happy1:

Which would be better for server performance?

I think NPCs would be faster for server performance because those scripts are for the NPC.
Parallel Lua would do more things that you don’t need, and you won’t use.
But the difference is so small that you won’t understand it; whatever you use NPCs or Parallel Lua is literally the same.

Here is the official Roblox forum for parallel Lua if you need more help: Parallel Lua Beta

Also regarding cores, why is it good to use 64 actors? Is there a direct correlation of actors with cores on a PC?

image_2022-07-14_205902320

This article should give you a better understanding of Parallel Luau.
Depending on your implementation, you can indeed gain performance boosts if used for NPCs.

I just realized that Actors are Models. Lol.

1 Like

I was thinking you knew it. :coefficients:
It is okay you learned it today.

1 Like

Putting scripts in actors and changing nothing about the script will have zero effect on performance

Maybe this video might help

2 Likes