Hello, i'm developing a game which heavily relies on npcs. Something i've noticed is when they are attacking the opponent team's NPCs the server can handle it fine, you could have 6+ npcs attacking that one npc and the server would be fine however, once it comes to attacking a tower i have made (uses an int value for health and when the weapons hit it after being triggered deducts health from the int value). The server freaks out when there are quite a few npcs attacking it. There are cooldowns on the weapons but everything still slows down and the game becomes unplayable.

What i'm considering is making a local script which counts the damage being done to the opponents tower then after so many seconds inflict the damage. (obviously would use a remote event)

If anyone has a solution to this insanity please let me know and if you need any further information please state what you'd like to find out and ill give you the information.

https://gyazo.com/03b8a6368543808b7e8d84f784b928ef <-- Image of what the npcs cause...

QUICK NOTE: I have given the NPC's Network ownership to the player that summons them.

1 comment

0

If you provide a script...