Can cheaters use GetNetworkPing and fake it?

I want to make lag compensation for a shooter game, and to make players with lower ping experience smoother, i though about using Player:GetNetworkPing to compensate lags, but can cheaters use it to their advantage?

Yes, someone could use lagswitching software to fake having more lag then temporarily lower it when its advantageous. How you counter this depends on what having higher lag does. One idea would be to place a long delay between changing the compensation amount, so abusers can’t react quickly enough for it to be useful.

1 Like

Is while loop that changes ping for players each minute a good idea? it will be up to date for most of the time, and cheaters couldn’t switch ping so fast