Detect if a player is lagging

For my hockey game, a problem is that sometimes a player will have a lag spike and teleport with the puck up the ice past everyone. Is there a way to detect on the client or from the server if the client is lagging in any way shape or form?

There is no actual way to detect if they’re lagging but you can check their ping(I’d recommend this post Best way to get player ping? - #4 by sleitnick).

A ping at around 100 is where you can start to detect lag and around 150 - 200 is lag so I would go for those points. Also, if you’re wondering what a ping is check this real quick tutorial out

I decided to take the tick() between a remotefunction, it’s not good, but it works well enough to a point where its bearable.

1 Like