Lots of Ping in game

Hey, So I have a game I made and me and some others are getting lots of ping whenever we try to test it out, And I have no idea why, This only happens with my game and I have made sure its not our internet, However now Im lost because I don’t know what to do to stop the lag

3 Likes

Check if any models you used contained any malicious scripts in them first. Also, if there are lots of parts in your game, you could try deleting some or making them into a union. Hopefully this fixes your problem. By the way, is there anything wrong in output? That could also tell you the issue you’re having.

1 Like

theres only like 20 parts in the game just lots of scripts

Did you make the scripts or were they from models? If so, you might want to check them.

I made the scripts, Lots of events and userinputservice

Open up script preformance in the view section to see whats causing high ping

Its the script with all the events

Is it a localscript or script?

Server script. also some locals are the rbxcharactersounds and animate

Im also getting no ping in studio, just in game.

Do you know what specific functions are causing the ping?

No im not able to tell, Most functions are just cloning or changing stats but there’s like 30 functions and again this only happens in game not studio

30 events*

charlimittttttttttttttttttt

Sounds like this is an issue with your internet provider not your game. The only difference between a server running in studio and testing in-game is that studio runs the server locally. This means any difference in ping between likely isn’t related to any server-sided code in your game.

Also can I ask what your ping is when testing in-game? And are you using a VPN? also worth checking that your user location is correctly set to where you live, as this should connect you to nearby servers. And do you have a link to the game? I would be able to test whether I experience a similar issue with ping.

Im not using a VPN, Also my ping is around 4000 when testing, I have tried playing other games and there is no issues with it, Just my game

I know it will take a while, but maybe you can try this:

1 create a new baseplate game

2 add a script in the new game then publish it and test it, if the ping is normal add another script and repeat the process successively.

I know it’s tedious but something similar happened to me in the past and I managed to figure out what was causing it by doing that.

1 Like

I did a similar thing. It takes awhile but it’s worth it to get lag out of your game(s).