Extreme Lag In My Game

I am creating a game but for some reason is is super laggy. In studio the ping averages around 20 - 30 and everything works good, but in the actual game the ping averages about 300 - 400. It completely ruins the experience of the game, so I am looking to see if any of you know how it.

Side note- In other games my ping is fine, but in my game the ping is super highy.

Perhaps Roblox is automatically putting you in servers that are far from where you live. If that is the case then there is nothing you can do about it.

You would have to optimize your game. Lag could be caused due to some abundance of parts/memory leaks.You can check for scripts that could be the culprit by opening the game console and checking memory and “Scripts” to check for scripts that could be way too active.