Entities Handler? How should it works?

Hello! I’m developing a game in which fighting and eliminating entities (NPCs and other entities) is the intended gameplay experience. To prevent my server from lagging, I don’t want to have too many entities visually present on the server at one time.
My question is, how can I get the server to replicate NPC actions to all clients at the same time for the same effects across all clients?
I have tried using the RobloxStateMachine module, but I am intending on doing things a little differently. I want clients to handle things like movement, effects and visualizations, but be controlled by the server and have everything synch across all clients.
If you have any ideas or partial solutions, any feedback is appreciated!

You are going to have to use some sort of replicator effect script/module. I recommend you make your own which handles the VFX, animations, etc. Logic should be handled on the server though.

The lag is usually caused by VFX and all that but logic is not usually laggy. (Depends if you have a good system)

Alright! I just still wonder how to make all clients synchronize for movements. Like if one player have suddenly a lag and the movement got stopped for a moment, it might not be still synchronized, how would it be fixed?
Thanks though!

Bump! I really need a solution! :smiley:

As long as the server is sending info for them to move the stuff it should be fine. One client will not affect the entire server becuase of client-side effects.