Lake territory: reborn (warrior cats game help!)

Massive lag when multiple people spawn at once

Our game is having a HUGE issue, spawning in as a cat ingame creates a huge lag spike through the entire server, if more than 3 people spawn at the same time. We just had a huge test with 60+ people spawning and, unplayable.

this is the current Code. I’ve tried disabling the color part aswell to see if that was an issue.

What ive tried
I’ve tried just spawning in the cats, without their custom made morphs, and fancy stuff.
I’ve tried a que system which worked but it was taking WAY to long to spawn in.

Need help ASAP as the game releases in a few weeks.

4 Likes

none of the shown code should be causing lag, are you doing any tweens or something else on the server?

Nope!, the game doesnt lag at all once all players have spawned in.

It only starts spking once a player is loading in, which stacks, so imagine 30+ people spawning in at the same time. server crashes pretty much.

is there a lot of parts in those for statements? if not, theres not enough code to tell what is causing the lag.