High ping in my game

Hello, I have a problem with ping.

A few months ago I also had a problem, because ping was then over 300+. I changed the internet to another one and it helped, but today it got back again. I am asking for help, because my game requires good internet and mine is good!

Here are the links to SpeedTest and Ping at Roblox:

https://gyazo.com/c2a1ba8b34503ed96b058f8f94131e73

https://gyazo.com/526231a95cd527e4bdf88cd150c3a9c4

1 Like

Can you please show us the script and confirm that the action being attempted is looking for a part and does this work ok in Studio?

1 Like

In Studio it’s OK, but what scripts? I have a lot of them in my game.

One of the picture shows an infinite yield for CanChatWith in ReplicatedStorage
so in Studio it appears but in running it does not so you get the message.
Look at the script that does the WaitForChild and see if at that time the script that creates the CanChatWith item has actually finished.

1 Like

It is possible that this is a weapon system.

This is a core roblox script… its not @SniperPlaygame’s script.

1 Like

Ok. In that case I am stuck. I say that because if I have a Core issue I escalate it as I have no copies of Core under my own control.

1 Like

Do other people have a high ping? You could very well just have a laggy game. This can be caused by poorly optimized scripts, viruses, useless things running when they shouldnt.

1 Like

Even in empty place I have 200 ping.

That could still mean you just have a laggy codebase, how many server scripts are running and what are they doing exactly?

1 Like

I have 33+ scripts in my game. These are: Weapon system, Class system, intro, intermission, vehicles.

That could be it, your ping just represents the time it takes for you to send a request to the server and receive a response back. If you have just a generally laggy game then the response will always take longer regardless of how good your internet is.

1 Like

Can you help me? How should I fix it?

You can placing code that are not needed immediately inside ModuleScripts, as ModuleScripts will only run when they’re required (as in require(Module), therefore substanstially improving performance. If you are willing to change your entire framework, I’d switch over to AeroGameFramework, which is comprised of almost all ModuleScripts, but the main idea is that ModuleScripts are efficient and really can help you out here.

3 Likes

For this to work, I need to change something in Module Scripts?

There are a lot of factors affecting this, this includes but not limited to: Server location, server age, server quality, server malfunctions, faulty website, faulty database, internet error, solar flare (seriously this can affect ping) and maintenance.

It’s hard to solve the problem of high lag, since there are way too many factors that can cause it. However, scripts lagging the server can also cause high ping. Keep an eye on UntrackedMemory, it generally represents how laggy your server is. The higher it is, the more laggy the server is.

Hopefully these information helped!

2 Likes

Slightly confused: issue with your game or issue with your computer? This is based on your mention of ping existing on a blank placem

If the ping is a problem with your computer itself (meaning the high ping carries over to other places) then you’re going to need to look to diagnose. If you have a Windows OS, go to the directory C:\Windows\System32 and then type cmd in the address bar. When that’s done, type in the command ping roblox.com -n 10 and wait for completion.

If the ping is a problem with your game itself, then it sounds like you have a lot of optimisation to tackle away at. Of course, without any references or code, it’s not easy to be able to tell what exactly you’re experiencing or how to alleviate it.

2 Likes

Helpful shortcut:
Shift + F3

it will allow anyone to check their ping in any Roblox game

2 Likes

Thank you to everyone for their activity and time! I solved the problem of reinstalling Roblox, disabling the network adapter and changing the options in the network adapter. Your answers will be useful to me in the future, so thank you!

2 Likes