High Sent/Recieve

So i’m getting quite far into my game, almost to release but i’ve noticed very strange lag in my game. Spinning objects such as coins are very stuttered and everything just seems very slow. I checked my network stats and it turns out my Sent is hovering around 90kb/s and my recieve is 260! What can i do to stop this? what could be the causes of this?

Is the spinning coin a tween animation?

I suggest to make the spinning animation of the coins not run on the server but rather let it run on the clients using a local script. This is to ensure the coins spinning animation is smooth and also to reduce the receive.

What is the code like exactly? Look for expensive loops.

No, I adjust the CFrame, it’s the only way that seemed to work for me. I use the brushtool plugin to place markers on the map. when i press play it spawns all the coins in place of the markers.

How could this be possible? I had no idea you could run animations from the client?

I generally don’t have many loops active at once that I can think of. Would a function attached to an area trigger be an example of loop since its constantly waiting for a player to enter the trigger?

Running the animations on the client will make it smoother.

1 Like

It turns out the ‘spinning’ and ‘floating’ animations i made for the coins were lagging the game big time. thanks!

1 Like