Roblox connection issues and datastores

I have been having an issue for the past 4 years which seems to have gotten worse over time, every time I play a roblox game or if I test my scripts outside of studio, I get a connection issue where my ping and recieve becomes one value in performance stats and everything in the game freezes except localscripts and my own player, datastores do not save any of the data after this freeze and players can still see my player moving as the “sent” value still updates.

If anyone knows a fix please reply.