How Would I Go About Reducing Lag For Mobile Players?

Reducing lag for mobile
Reducing lag is a very open ended topic and it is generally game specific. Could you please provide some more information about your game as this will help us determine what is causing lag in your game. However I can give a very generic answer to reducing lag for mobile:

  • Check if there is very ‘taxing’ or unnecessary loops in your code. If you have loops for moving gui object, parts ect then you should consider using TweenService instead.

  • Having lots of badly optimised unions or meches could create more lag.

  • Do you have any free models in your game as lots of free models are badly optimised and sometimes contain miscellaneous scripts.

  • Do you have lots of texture and decals everywhere as these could cause a lot of lag. Small amounts of them don’t cause much of a problem but huge amount do.

This isn’t my area of expertise so I am sorry for the limited information. Also I don’t have enough information to make a meaningful response. However, there is this really good thread about building optimisation that may help explain how to reduce lag in your game:

How to improve your anti-exploit system
It looks like your system just checks if the players speed goes over 25 and as soon as that happens an action is taken against that player, I can’t be sure though. This is an okay way of doing it but this way has lots of flaws. For example, it doesn’t take into account sudden changes of speed because of lag. Maybe you could consider getting the players average speed over a certain amount of time and then checking if the player is speed exploiting from that average speed.

2 Likes